Package com.pingidentity.sdk.token
Class GenericTokenRequest.Builder
java.lang.Object
com.pingidentity.sdk.token.GenericTokenRequest.Builder
- Enclosing class:
- GenericTokenRequest
Builder for
GenericTokenRequest.-
Method Summary
Modifier and TypeMethodDescriptionSets the Audience (aud) claim.build()Builds theGenericTokenRequest.claimsOverride(Map<String, Object> claims) Sets the claims to override.Sets the Client ID.includeNotBeforeClaim(boolean includeNotBeforeClaim) Sets whether to include the Not Before (nbf) claim.Sets the JWT ID (jti) claim.lifetime(float lifetime) Sets the lifetime of the token in minutes.signingConfig(TokenSigningConfig signingConfig) Sets the signing configuration.Sets the Type (typ) header parameter value.
-
Method Details
-
jti
Sets the JWT ID (jti) claim.- Parameters:
jti- the jti value- Returns:
- the builder
-
clientId
Sets the Client ID.- Parameters:
clientId- the client ID- Returns:
- the builder
-
audience
Sets the Audience (aud) claim.- Parameters:
audience- the audience value- Returns:
- the builder
-
lifetime
Sets the lifetime of the token in minutes.- Parameters:
lifetime- the lifetime in minutes- Returns:
- the builder
-
includeNotBeforeClaim
Sets whether to include the Not Before (nbf) claim.- Parameters:
includeNotBeforeClaim- true to include the nbf claim, false otherwise- Returns:
- the builder
-
type
Sets the Type (typ) header parameter value.- Parameters:
type- the type header value- Returns:
- the builder
-
signingConfig
Sets the signing configuration.- Parameters:
signingConfig- the signing configuration- Returns:
- the builder
-
claimsOverride
Sets the claims to override.- Parameters:
claims- theMapof claims to override- Returns:
- the builder
- Since:
- 13.1
-
build
Builds theGenericTokenRequest.- Returns:
- the constructed GenericTokenRequest
-