public static class TokenIntrospectionSuccessResponse.Builder extends Object
| Constructor | Description |
|---|---|
Builder(boolean active) |
Creates a new token introspection success response builder.
|
Builder(TokenIntrospectionSuccessResponse response) |
Creates a new token introspection success response builder
with the parameters of the specified response.
|
public Builder(boolean active)
active - true if the token is active, else
false.public Builder(TokenIntrospectionSuccessResponse response)
response - The response which parameters to use. Not
null.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(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(Date exp)
exp - The token expiration time, null if not
specified.public TokenIntrospectionSuccessResponse.Builder issueTime(Date iat)
iat - The token issue time, null if not
specified.public TokenIntrospectionSuccessResponse.Builder notBeforeTime(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(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.@Deprecated public TokenIntrospectionSuccessResponse.Builder x509CertificateSHA256Thumbprint(com.nimbusds.jose.util.Base64URL x5t)
cnf.x5t#S256 claim.x5t - The client X.509 certificate SHA-256 thumbprint,
null if not specified.public TokenIntrospectionSuccessResponse.Builder x509CertificateConfirmation(X509CertificateConfirmation cnf)
cnf.x5t#S256 claim.cnf - The client X.509 certificate confirmation,
null if not specified.public TokenIntrospectionSuccessResponse.Builder parameter(String name, 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 © 2018 Connect2id Ltd.. All rights reserved.