Class GenericTokenRequest.Builder

java.lang.Object
com.pingidentity.sdk.token.GenericTokenRequest.Builder
Enclosing class:
GenericTokenRequest

public static final class GenericTokenRequest.Builder extends Object
Builder for GenericTokenRequest.
  • Method Details

    • jti

      Sets the JWT ID (jti) claim.
      Parameters:
      jti - the jti value
      Returns:
      the builder
    • clientId

      public GenericTokenRequest.Builder clientId(String clientId)
      Sets the Client ID.
      Parameters:
      clientId - the client ID
      Returns:
      the builder
    • audience

      public GenericTokenRequest.Builder audience(String audience)
      Sets the Audience (aud) claim.
      Parameters:
      audience - the audience value
      Returns:
      the builder
    • lifetime

      public GenericTokenRequest.Builder lifetime(float lifetime)
      Sets the lifetime of the token in minutes.
      Parameters:
      lifetime - the lifetime in minutes
      Returns:
      the builder
    • includeNotBeforeClaim

      public GenericTokenRequest.Builder includeNotBeforeClaim(boolean includeNotBeforeClaim)
      Sets whether to include the Not Before (nbf) claim.
      Parameters:
      includeNotBeforeClaim - true to include the nbf claim, false otherwise
      Returns:
      the builder
    • type

      public GenericTokenRequest.Builder type(String type)
      Sets the Type (typ) header parameter value.
      Parameters:
      type - the type header value
      Returns:
      the builder
    • signingConfig

      public GenericTokenRequest.Builder signingConfig(TokenSigningConfig signingConfig)
      Sets the signing configuration.
      Parameters:
      signingConfig - the signing configuration
      Returns:
      the builder
    • claimsOverride

      public GenericTokenRequest.Builder claimsOverride(Map<String,Object> claims)
      Sets the claims to override.
      Parameters:
      claims - the Map of claims to override
      Returns:
      the builder
      Since:
      13.1
    • build

      public GenericTokenRequest build()
      Returns:
      the constructed GenericTokenRequest