Interface PrivateKeyJwtConfig.Builder

  • Method Details

    • privateKeySource

      PrivateKeyJwtConfig.Builder privateKeySource(PrivateKeySource privateKeySource)

      The private key source for the JWT client assertion.

      Parameters:
      privateKeySource - The private key source for the JWT client assertion.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • privateKeySource

      default PrivateKeyJwtConfig.Builder privateKeySource(Consumer<PrivateKeySource.Builder> privateKeySource)

      The private key source for the JWT client assertion.

      This is a convenience method that creates an instance of the PrivateKeySource.Builder avoiding the need to create one manually via PrivateKeySource.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to privateKeySource(PrivateKeySource).

      Parameters:
      privateKeySource - a consumer that will call methods on PrivateKeySource.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • signingAlgorithm

      PrivateKeyJwtConfig.Builder signingAlgorithm(String signingAlgorithm)

      The algorithm used to sign the JWT client assertion. Valid values are RS256, PS256, and ES256.

      Parameters:
      signingAlgorithm - The algorithm used to sign the JWT client assertion. Valid values are RS256, PS256, and ES256.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • signingAlgorithm

      PrivateKeyJwtConfig.Builder signingAlgorithm(SigningAlgorithm signingAlgorithm)

      The algorithm used to sign the JWT client assertion. Valid values are RS256, PS256, and ES256.

      Parameters:
      signingAlgorithm - The algorithm used to sign the JWT client assertion. Valid values are RS256, PS256, and ES256.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • additionalHeaderClaims

      PrivateKeyJwtConfig.Builder additionalHeaderClaims(Map<String,String> additionalHeaderClaims)

      A map of additional claims to include in the JWT client assertion header. Standard header claims such as alg and typ cannot be added.

      Parameters:
      additionalHeaderClaims - A map of additional claims to include in the JWT client assertion header. Standard header claims such as alg and typ cannot be added.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalPayloadClaims

      PrivateKeyJwtConfig.Builder additionalPayloadClaims(Map<String,String> additionalPayloadClaims)

      A map of additional claims to include in the JWT client assertion payload. Payload claims generated by the service, such as iss, sub, jti, and exp, cannot be added.

      Parameters:
      additionalPayloadClaims - A map of additional claims to include in the JWT client assertion payload. Payload claims generated by the service, such as iss, sub, jti, and exp, cannot be added.
      Returns:
      Returns a reference to this object so that method calls can be chained together.