Class DeviceClientAuthenticationToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.oauth2.server.authorization.authentication.OAuth2ClientAuthenticationToken
com.irurueta.authserver.authorization.api.web.implicit.DeviceClientAuthenticationToken
- All Implemented Interfaces:
Serializable,Principal,org.springframework.security.core.Authentication,org.springframework.security.core.CredentialsContainer
public class DeviceClientAuthenticationToken
extends org.springframework.security.oauth2.server.authorization.authentication.OAuth2ClientAuthenticationToken
The request of a public client of the device flow to be authenticated by its identifier alone. It is a type of its
own so that
DeviceClientAuthenticationProvider only ever accepts what DeviceClientAuthenticationConverter produced: a token with the same authentication method that another converter
built from request parameters (the PKCE one) must still be verified with its code verifier.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder<B extends org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder<B>>Nested classes/interfaces inherited from interface org.springframework.security.core.Authentication
org.springframework.security.core.Authentication.Builder<B extends org.springframework.security.core.Authentication.Builder<B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringIdentifier of the public client.private static final longSerial version. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.security.oauth2.server.authorization.authentication.OAuth2ClientAuthenticationToken
getAdditionalParameters, getClientAuthenticationMethod, getCredentials, getPrincipal, getRegisteredClientMethods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.security.core.Authentication
toBuilder
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial version.- See Also:
-
clientId
Identifier of the public client.
-
-
Constructor Details
-
DeviceClientAuthenticationToken
Creates the request.- Parameters:
clientId- identifier of the public client.
-
-
Method Details
-
clientId
Tells the client that asks to be authenticated.- Returns:
- the identifier of the public client.
-