Class DPoPProofContext.Builder
java.lang.Object
org.springframework.security.oauth2.jwt.DPoPProofContext.Builder
- Enclosing class:
- DPoPProofContext
A builder for
DPoPProofContext
.-
Method Summary
Modifier and TypeMethodDescriptionaccessToken
(OAuth2Token accessToken) Sets the access token if the request is a Protected Resource request.build()
Builds a newDPoPProofContext
.Sets the value of the HTTP method of the request to which the DPoP ProofJwt
is attached.Sets the value of the HTTP target URI of the request to which the DPoP ProofJwt
is attached, without query and fragment parts.
-
Method Details
-
method
Sets the value of the HTTP method of the request to which the DPoP ProofJwt
is attached.- Parameters:
method
- the value of the HTTP method of the request to which the DPoP ProofJwt
is attached- Returns:
- the
DPoPProofContext.Builder
-
targetUri
Sets the value of the HTTP target URI of the request to which the DPoP ProofJwt
is attached, without query and fragment parts.- Parameters:
targetUri
- the value of the HTTP target URI of the request to which the DPoP ProofJwt
is attached- Returns:
- the
DPoPProofContext.Builder
-
accessToken
Sets the access token if the request is a Protected Resource request.- Parameters:
accessToken
- the access token if the request is a Protected Resource request- Returns:
- the
DPoPProofContext.Builder
-
build
Builds a newDPoPProofContext
.- Returns:
- a
DPoPProofContext
-