Class DPoPAuthenticationToken
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 Summary
ConstructorsConstructorDescriptionDPoPAuthenticationToken(String accessToken, String dPoPProof, String method, String resourceUri) Constructs aDPoPAuthenticationTokenusing the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionReturns the DPoP-bound access token.Returns the DPoP ProofJwt.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
-
Constructor Details
-
DPoPAuthenticationToken
public DPoPAuthenticationToken(String accessToken, String dPoPProof, String method, String resourceUri) Constructs aDPoPAuthenticationTokenusing the provided parameters.- Parameters:
accessToken- the DPoP-bound access tokendPoPProof- the DPoP ProofJwtmethod- the value of the HTTP method of the requestresourceUri- the value of the HTTP resource URI of the request, without query and fragment parts
-
-
Method Details
-
getPrincipal
-
getCredentials
-
getAccessToken
Returns the DPoP-bound access token.- Returns:
- the DPoP-bound access token
-
getDPoPProof
Returns the DPoP ProofJwt.- Returns:
- the DPoP Proof
Jwt
-
getMethod
Returns the value of the HTTP method of the request.- Returns:
- the value of the HTTP method of the request
-
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
-