Class TokenResponse
java.lang.Object
net.shibboleth.idp.plugin.authn.duo.nimbus.impl.TokenResponse
A token response, see RFC6749 section 5.1.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder to buildTokenResponse.static interfaceAccess token stage interface.static interfaceBuild stage interface.static interfaceToken stage interface.static interfaceToken type stage interface. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe access token issued by the authorization server.private final IntegerThe lifetime in seconds of the access token.private final StringThe OIDC ID token string base64 encoded.private final StringThe refresh token, which can be used to obtain new access tokens using the same authorization grant.private final StringThe scope requested by the client.private final StringThe token type e.g. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TokenResponse.IIdTokenStagebuilder()Creates builder to buildTokenResponse.final StringGet the access token.final IntegerGet how long the access token is valid for in seconds.final StringGet the ID token.final StringGet the refresh token.final StringgetScope()Get the requested scope.final StringGet the token type.toString()
-
Field Details
-
idToken
The OIDC ID token string base64 encoded. -
accessToken
The access token issued by the authorization server. -
refreshToken
The refresh token, which can be used to obtain new access tokens using the same authorization grant. -
tokenType
The token type e.g. Bearer. Value is case insensitive -
expiresIn
The lifetime in seconds of the access token. -
scope
The scope requested by the client.
-
-
Constructor Details
-
TokenResponse
Constructor.- Parameters:
builder- the builder.
-
-
Method Details
-
getIdToken
Get the ID token.- Returns:
- Returns the idToken.
-
getAccessToken
Get the access token.- Returns:
- Returns the accessToken.
-
getRefreshToken
Get the refresh token.- Returns:
- Returns the refreshToken.
-
getTokenType
Get the token type.- Returns:
- Returns the tokenType.
-
getExpiresIn
Get how long the access token is valid for in seconds.- Returns:
- Returns the expiresIn.
-
getScope
Get the requested scope.- Returns:
- Returns the scope.
-
toString
-
builder
Creates builder to buildTokenResponse.- Returns:
- created builder
-