public static class CustomTokenIntrospectionSuccessResponse.Builder extends Object
Constructor and Description |
---|
Builder(boolean active)
Creates a new token introspection success response builder.
|
Builder(CustomTokenIntrospectionSuccessResponse response)
Creates a new token introspection success response builder with the
parameters of the specified response.
|
Modifier and Type | Method and Description |
---|---|
CustomTokenIntrospectionSuccessResponse.Builder |
audience(List<com.nimbusds.oauth2.sdk.id.Audience> audList)
Sets the token audience.
|
CustomTokenIntrospectionSuccessResponse |
build()
Builds a new token introspection success response.
|
CustomTokenIntrospectionSuccessResponse.Builder |
clientID(com.nimbusds.oauth2.sdk.id.ClientID clientID)
Sets the identifier for the OAuth 2.0 client that requested the token.
|
CustomTokenIntrospectionSuccessResponse.Builder |
expirationTime(Date exp)
Sets the token expiration time.
|
CustomTokenIntrospectionSuccessResponse.Builder |
issuer(com.nimbusds.oauth2.sdk.id.Issuer iss)
Sets the token issuer.
|
CustomTokenIntrospectionSuccessResponse.Builder |
issueTime(Date iat)
Sets the token issue time.
|
CustomTokenIntrospectionSuccessResponse.Builder |
jwtID(com.nimbusds.oauth2.sdk.id.JWTID jti)
Sets the token identifier.
|
CustomTokenIntrospectionSuccessResponse.Builder |
notBeforeTime(Date nbf)
Sets the token not-before time.
|
CustomTokenIntrospectionSuccessResponse.Builder |
parameter(String name,
Object value)
Sets a custom parameter.
|
CustomTokenIntrospectionSuccessResponse.Builder |
scope(com.nimbusds.oauth2.sdk.Scope scope)
Sets the token scope.
|
CustomTokenIntrospectionSuccessResponse.Builder |
subject(com.nimbusds.oauth2.sdk.id.Subject sub)
Sets the token subject.
|
CustomTokenIntrospectionSuccessResponse.Builder |
tokenType(com.nimbusds.oauth2.sdk.token.AccessTokenType tokenType)
Sets the token type.
|
CustomTokenIntrospectionSuccessResponse.Builder |
username(String username)
Sets the username of the resource owner who authorised the token.
|
CustomTokenIntrospectionSuccessResponse.Builder |
x509CertificateConfirmation(com.nimbusds.oauth2.sdk.auth.X509CertificateConfirmation cnf)
Sets the client X.509 certificate confirmation, for a mutual TLS client
certificate bound access token.
|
CustomTokenIntrospectionSuccessResponse.Builder |
x509CertificateSHA256Thumbprint(com.nimbusds.jose.util.Base64URL x5t)
Deprecated.
|
public Builder(boolean active)
active
- true
if the token is active, else false
.public Builder(CustomTokenIntrospectionSuccessResponse response)
response
- The response which parameters to use. Not null
.public CustomTokenIntrospectionSuccessResponse.Builder scope(com.nimbusds.oauth2.sdk.Scope scope)
scope
- The token scope, null
if not specified.public CustomTokenIntrospectionSuccessResponse.Builder clientID(com.nimbusds.oauth2.sdk.id.ClientID clientID)
clientID
- The client identifier, null
if not specified.public CustomTokenIntrospectionSuccessResponse.Builder username(String username)
username
- The username, null
if not specified.public CustomTokenIntrospectionSuccessResponse.Builder tokenType(com.nimbusds.oauth2.sdk.token.AccessTokenType tokenType)
tokenType
- The token type, null
if not specified.public CustomTokenIntrospectionSuccessResponse.Builder expirationTime(Date exp)
exp
- The token expiration time, null
if not specified.public CustomTokenIntrospectionSuccessResponse.Builder issueTime(Date iat)
iat
- The token issue time, null
if not specified.public CustomTokenIntrospectionSuccessResponse.Builder notBeforeTime(Date nbf)
nbf
- The token not-before time, null
if not specified.public CustomTokenIntrospectionSuccessResponse.Builder subject(com.nimbusds.oauth2.sdk.id.Subject sub)
sub
- The token subject, null
if not specified.public CustomTokenIntrospectionSuccessResponse.Builder audience(List<com.nimbusds.oauth2.sdk.id.Audience> audList)
audList
- The token audience, null
if not specified.public CustomTokenIntrospectionSuccessResponse.Builder issuer(com.nimbusds.oauth2.sdk.id.Issuer iss)
iss
- The token issuer, null
if not specified.public CustomTokenIntrospectionSuccessResponse.Builder jwtID(com.nimbusds.oauth2.sdk.id.JWTID jti)
jti
- The token identifier, null
if not specified.@Deprecated public CustomTokenIntrospectionSuccessResponse.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 CustomTokenIntrospectionSuccessResponse.Builder x509CertificateConfirmation(com.nimbusds.oauth2.sdk.auth.X509CertificateConfirmation cnf)
cnf.x5t#S256
claim.cnf
- The client X.509 certificate confirmation, null
if not
specified.public CustomTokenIntrospectionSuccessResponse.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 CustomTokenIntrospectionSuccessResponse build()
Copyright © 2021. All rights reserved.