java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.oauth2.server.resource.authentication.DPoPAuthenticationToken
All Implemented Interfaces:
Serializable, Principal, org.springframework.security.core.Authentication, org.springframework.security.core.CredentialsContainer

public class DPoPAuthenticationToken extends org.springframework.security.authentication.AbstractAuthenticationToken
An Authentication representing a protected resource request with a DPoP-bound access token.
Since:
6.5
See Also:
  • Constructor Details

    • DPoPAuthenticationToken

      public DPoPAuthenticationToken(String accessToken, String dPoPProof, String method, String resourceUri)
      Constructs a DPoPAuthenticationToken using the provided parameters.
      Parameters:
      accessToken - the DPoP-bound access token
      dPoPProof - the DPoP Proof Jwt
      method - the value of the HTTP method of the request
      resourceUri - the value of the HTTP resource URI of the request, without query and fragment parts
  • Method Details

    • getPrincipal

      public Object getPrincipal()
    • getCredentials

      public Object getCredentials()
    • getAccessToken

      public String getAccessToken()
      Returns the DPoP-bound access token.
      Returns:
      the DPoP-bound access token
    • getDPoPProof

      public String getDPoPProof()
      Returns the DPoP Proof Jwt.
      Returns:
      the DPoP Proof Jwt
    • getMethod

      public String getMethod()
      Returns the value of the HTTP method of the request.
      Returns:
      the value of the HTTP method of the request
    • getResourceUri

      public String getResourceUri()
      Returns the value of the HTTP resource URI of the request, without query and fragment parts.
      Returns:
      the value of the HTTP resource URI of the request