Class DPoPProofContext
java.lang.Object
org.springframework.security.oauth2.jwt.DPoPProofContext
A context class that holds a DPoP Proof
Jwt and additional parameters
associated to an Access Token request or a Protected Resource request.- Since:
- 6.5
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription<T extends OAuth2Token>
TReturns the access token if the request is a Protected Resource request.Returns the DPoP ProofJwt.Returns the value of the HTTP method of the request to which the DPoP ProofJwtis attached.Returns the value of the HTTP target URI of the request to which the DPoP ProofJwtis attached, without query and fragment parts.static DPoPProofContext.BuilderwithDPoPProof(String dPoPProof) Returns a newDPoPProofContext.Builder, initialized with the DPoP ProofJwt.
-
Method Details
-
getDPoPProof
Returns the DPoP ProofJwt.- Returns:
- the DPoP Proof
Jwt
-
getMethod
Returns the value of the HTTP method of the request to which the DPoP ProofJwtis attached.- Returns:
- the value of the HTTP method of the request to which the DPoP Proof
Jwtis attached
-
getTargetUri
Returns the value of the HTTP target URI of the request to which the DPoP ProofJwtis attached, without query and fragment parts.- Returns:
- the value of the HTTP target URI of the request to which the DPoP Proof
Jwtis attached
-
getAccessToken
Returns the access token if the request is a Protected Resource request.- Type Parameters:
T- the type of the access token- Returns:
- the access token if the request is a Protected Resource request or
null
-
withDPoPProof
Returns a newDPoPProofContext.Builder, initialized with the DPoP ProofJwt.- Parameters:
dPoPProof- the DPoP ProofJwt- Returns:
- the
DPoPProofContext.Builder
-