Package com.pingidentity.sdk.token
Interface TokenRequest
- All Known Implementing Classes:
GenericTokenRequest
public interface TokenRequest
-
Method Summary
Modifier and TypeMethodDescriptionReturns the Audience (aud) claim.Returns a map of claims that should be added to the token.Returns the Client ID, often used for the Issuer (iss) and Subject (sub) claims.default StringgetJti()Returns the JWT ID (jti) claim.floatReturns the lifetime of the token in minutes.Returns the signing configuration for the token.getType()Returns the Type (typ) header parameter value.booleanIndicates whether the Not Before (nbf) claim should be included in the token.
-
Method Details
-
getSigningConfig
TokenSigningConfig getSigningConfig()Returns the signing configuration for the token.- Returns:
- the
TokenSigningConfig
-
getJti
Returns the JWT ID (jti) claim.- Returns:
- the jti claim, or null if one should be generated automatically
-
getClientId
String getClientId()Returns the Client ID, often used for the Issuer (iss) and Subject (sub) claims.- Returns:
- the client ID
-
getAudience
String getAudience()Returns the Audience (aud) claim.- Returns:
- the audience
-
getLifetime
float getLifetime()Returns the lifetime of the token in minutes.- Returns:
- the lifetime in minutes
-
includeNotBeforeClaim
boolean includeNotBeforeClaim()Indicates whether the Not Before (nbf) claim should be included in the token.- Returns:
- true if the nbf claim should be included, false otherwise
-
getType
String getType()Returns the Type (typ) header parameter value.- Returns:
- the type header value
-
getClaimsOverride
Returns a map of claims that should be added to the token. If a claim in this map conflicts with a default claim generated by the token service, the value in this map will take precedence.- Returns:
- a map of claims to include in the token
-