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 ProofJwt
is attached.Returns the value of the HTTP target URI of the request to which the DPoP ProofJwt
is attached, without query and fragment parts.static DPoPProofContext.Builder
withDPoPProof
(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 ProofJwt
is attached.- Returns:
- the value of the HTTP method of the request to which the DPoP Proof
Jwt
is attached
-
getTargetUri
Returns the value of the HTTP target URI of the request to which the DPoP ProofJwt
is attached, without query and fragment parts.- Returns:
- the value of the HTTP target URI of the request to which the DPoP Proof
Jwt
is 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
-