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:
  • 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>>
  • Constructor Summary

    Constructors
    Constructor
    Description
    DPoPAuthenticationToken(String accessToken, String dPoPProof, String method, String resourceUri)
    Constructs a DPoPAuthenticationToken using the provided parameters.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the DPoP-bound access token.
     
    Returns the DPoP Proof Jwt.
    Returns the value of the HTTP method of the request.
     
    Returns the value of the HTTP resource URI of the request, without query and fragment parts.

    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
  • 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