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

    Fields
    Modifier and Type
    Field
    Description
    private final String
    Identifier of the public client.
    private static final long
    Serial version.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates the request.
  • Method Summary

    Modifier and Type
    Method
    Description
    Tells the client that asks to be authenticated.

    Methods inherited from class org.springframework.security.oauth2.server.authorization.authentication.OAuth2ClientAuthenticationToken

    getAdditionalParameters, getClientAuthenticationMethod, getCredentials, getPrincipal, getRegisteredClient

    Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken

    equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.springframework.security.core.Authentication

    toBuilder

    Methods inherited from interface java.security.Principal

    implies
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serial version.
      See Also:
    • clientId

      private final String clientId
      Identifier of the public client.
  • Constructor Details

    • DeviceClientAuthenticationToken

      public DeviceClientAuthenticationToken(String clientId)
      Creates the request.
      Parameters:
      clientId - identifier of the public client.
  • Method Details

    • clientId

      public String clientId()
      Tells the client that asks to be authenticated.
      Returns:
      the identifier of the public client.