@Introspected
public class IntrospectionResponse
extends java.lang.Object
Constructor and Description |
---|
IntrospectionResponse()
Constructor.
|
IntrospectionResponse(boolean active) |
Modifier and Type | Method and Description |
---|---|
void |
addExtension(java.lang.String key,
java.lang.Object value) |
java.lang.String |
getAud() |
java.lang.String |
getClientId() |
java.lang.Long |
getExp() |
java.util.Map<java.lang.String,java.lang.Object> |
getExtensions() |
java.lang.Long |
getIat() |
java.lang.String |
getIss() |
java.lang.String |
getJti() |
java.lang.Long |
getNbf() |
java.lang.String |
getScope() |
java.lang.String |
getSub() |
java.lang.String |
getTokenType() |
java.lang.String |
getUsername() |
boolean |
isActive() |
void |
setActive(boolean active) |
void |
setAud(java.lang.String aud) |
void |
setClientId(java.lang.String clientId) |
void |
setExp(java.lang.Long exp) |
void |
setExtensions(java.util.Map<java.lang.String,java.lang.Object> extensions) |
void |
setIat(java.lang.Long iat) |
void |
setIss(java.lang.String iss) |
void |
setJti(java.lang.String jti) |
void |
setNbf(java.lang.Long nbf) |
void |
setScope(java.lang.String scope) |
void |
setSub(java.lang.String sub) |
void |
setTokenType(java.lang.String tokenType) |
void |
setUsername(java.lang.String username) |
public IntrospectionResponse()
public IntrospectionResponse(boolean active)
active
- Boolean indicator of whether or not the presented token is currently active.public void addExtension(java.lang.String key, java.lang.Object value)
key
- Keyvalue
- Valuepublic void setExtensions(java.util.Map<java.lang.String,java.lang.Object> extensions)
extensions
- Extensionspublic java.util.Map<java.lang.String,java.lang.Object> getExtensions()
public boolean isActive()
public void setActive(boolean active)
active
- Boolean indicator of whether or not the presented token is currently active.@Nullable public java.lang.String getScope()
public void setScope(@Nullable java.lang.String scope)
scope
- A JSON string containing a space-separated list of scopes associated with this token.@Nullable public java.lang.String getClientId()
public void setClientId(@Nullable java.lang.String clientId)
clientId
- Client identifier for the OAuth 2.0 client that requested this token.@Nullable public java.lang.String getUsername()
public void setUsername(@Nullable java.lang.String username)
username
- Human-readable identifier for the resource owner who authorized this token.public java.lang.String getTokenType()
public void setTokenType(java.lang.String tokenType)
tokenType
- Type of token.@Nullable public java.lang.Long getExp()
public void setExp(@Nullable java.lang.Long exp)
exp
- Integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire as defined in JWT.@Nullable public java.lang.Long getIat()
public void setIat(@Nullable java.lang.Long iat)
iat
- Integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued, as defined in JWT.@Nullable public java.lang.Long getNbf()
public void setNbf(@Nullable java.lang.Long nbf)
nbf
- Long timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token is not to be used before, as defined in JWT.@Nullable public java.lang.String getSub()
public void setSub(@Nullable java.lang.String sub)
sub
- Subject of the token, as defined in JWT [RFC7519]. Usually a machine-readable identifier of the resource owner who authorized this token.@Nullable public java.lang.String getAud()
public void setAud(@Nullable java.lang.String aud)
aud
- Service-specific string identifier or list of string identifiers representing the intended audience for this token, as defined in JWT@Nullable public java.lang.String getIss()
public void setIss(@Nullable java.lang.String iss)
iss
- Long timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued, as defined in JWT.@Nullable public java.lang.String getJti()
public void setJti(@Nullable java.lang.String jti)
jti
- String identifier for the token, as defined in JWT.