Class DPoPProofContext.Builder

java.lang.Object
org.springframework.security.oauth2.jwt.DPoPProofContext.Builder
Enclosing class:
DPoPProofContext

public static final class DPoPProofContext.Builder extends Object
A builder for DPoPProofContext.
Since:
6.5
  • Method Details

    • method

      public DPoPProofContext.Builder method(String method)
      Sets the value of the HTTP method of the request to which the DPoP Proof Jwt is attached.
      Parameters:
      method - the value of the HTTP method of the request to which the DPoP Proof Jwt is attached
      Returns:
      the DPoPProofContext.Builder
    • targetUri

      public DPoPProofContext.Builder targetUri(String targetUri)
      Sets the value of the HTTP target URI of the request to which the DPoP Proof Jwt is attached, without query and fragment parts.
      Parameters:
      targetUri - the value of the HTTP target URI of the request to which the DPoP Proof Jwt is attached
      Returns:
      the DPoPProofContext.Builder
    • accessToken

      public DPoPProofContext.Builder accessToken(@Nullable org.springframework.security.oauth2.core.OAuth2Token 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

      public DPoPProofContext build()
      Builds a new DPoPProofContext.
      Returns:
      a DPoPProofContext