public static class TokenIntrospectionSuccessResponse.Builder extends java.lang.Object
| Constructor and Description |
|---|
Builder(boolean active)
Creates a new token introspection success response builder.
|
| Modifier and Type | Method and Description |
|---|---|
TokenIntrospectionSuccessResponse.Builder |
audience(java.util.List<Audience> audList)
Sets the token audience.
|
TokenIntrospectionSuccessResponse |
build()
Builds a new token introspection success response.
|
TokenIntrospectionSuccessResponse.Builder |
clientID(ClientID clientID)
Sets the identifier for the OAuth 2.0 client that requested
the token.
|
TokenIntrospectionSuccessResponse.Builder |
expirationTime(java.util.Date exp)
Sets the token expiration time.
|
TokenIntrospectionSuccessResponse.Builder |
issuer(Issuer iss)
Sets the token issuer.
|
TokenIntrospectionSuccessResponse.Builder |
issueTime(java.util.Date iat)
Sets the token issue time.
|
TokenIntrospectionSuccessResponse.Builder |
jwtID(JWTID jti)
Sets the token identifier.
|
TokenIntrospectionSuccessResponse.Builder |
notBeforeTime(java.util.Date nbf)
Sets the token not-before time.
|
TokenIntrospectionSuccessResponse.Builder |
parameter(java.lang.String name,
java.lang.Object value)
Sets a custom parameter.
|
TokenIntrospectionSuccessResponse.Builder |
scope(Scope scope)
Sets the token scope.
|
TokenIntrospectionSuccessResponse.Builder |
subject(Subject sub)
Sets the token subject.
|
TokenIntrospectionSuccessResponse.Builder |
tokenType(AccessTokenType tokenType)
Sets the token type.
|
TokenIntrospectionSuccessResponse.Builder |
username(java.lang.String username)
Sets the username of the resource owner who authorised the
token.
|
public Builder(boolean active)
active - true if the token is active, else
false.public TokenIntrospectionSuccessResponse.Builder scope(Scope scope)
scope - The token scope, null if not specified.public TokenIntrospectionSuccessResponse.Builder clientID(ClientID clientID)
clientID - The client identifier, null if not
specified.public TokenIntrospectionSuccessResponse.Builder username(java.lang.String username)
username - The username, null if not specified.public TokenIntrospectionSuccessResponse.Builder tokenType(AccessTokenType tokenType)
tokenType - The token type, null if not
specified.public TokenIntrospectionSuccessResponse.Builder expirationTime(java.util.Date exp)
exp - The token expiration time, null if not
specified.public TokenIntrospectionSuccessResponse.Builder issueTime(java.util.Date iat)
iat - The token issue time, null if not
specified.public TokenIntrospectionSuccessResponse.Builder notBeforeTime(java.util.Date nbf)
nbf - The token not-before time, null if not
specified.public TokenIntrospectionSuccessResponse.Builder subject(Subject sub)
sub - The token subject, null if not specified.public TokenIntrospectionSuccessResponse.Builder audience(java.util.List<Audience> audList)
audList - The token audience, null if not
specified.public TokenIntrospectionSuccessResponse.Builder issuer(Issuer iss)
iss - The token issuer, null if not specified.public TokenIntrospectionSuccessResponse.Builder jwtID(JWTID jti)
jti - The token identifier, null if not
specified.public TokenIntrospectionSuccessResponse.Builder parameter(java.lang.String name, java.lang.Object value)
name - The parameter name. Must not be null.value - The parameter value. Should map to a JSON type.
If null not specified.public TokenIntrospectionSuccessResponse build()
Copyright © 2016 Connect2id Ltd.. All Rights Reserved.