Class IntrospectionResponse
java.lang.Object
io.micronaut.security.endpoints.introspection.IntrospectionResponse
- Author:
- Sergio del Amo
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionIntrospectionResponse(boolean active, @Nullable String tokenType, @Nullable String scope, @Nullable String clientId, @Nullable String username, @Nullable Long exp, @Nullable Long iat, @Nullable Long nbf, @Nullable String sub, @Nullable String aud, @Nullable String iss, @Nullable String jti, @Nullable Map<String, Object> extensions) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddExtension(String key, Object value) @Nullable StringgetAud()@Nullable String@Nullable LonggetExp()@Nullable LonggetIat()@Nullable StringgetIss()@Nullable StringgetJti()@Nullable LonggetNbf()@Nullable StringgetScope()@Nullable StringgetSub()@Nullable String@Nullable StringbooleanisActive()
- 
Constructor Details- 
IntrospectionResponsepublic IntrospectionResponse(boolean active, @Nullable @Nullable String tokenType, @Nullable @Nullable String scope, @Nullable @Nullable String clientId, @Nullable @Nullable String username, @Nullable @Nullable Long exp, @Nullable @Nullable Long iat, @Nullable @Nullable Long nbf, @Nullable @Nullable String sub, @Nullable @Nullable String aud, @Nullable @Nullable String iss, @Nullable @Nullable String jti, @Nullable @Nullable Map<String, Object> extensions) - Parameters:
- active- Boolean indicator of whether or not the presented token is currently active.
- tokenType- Type of token.
- scope- A JSON string containing a space-separated list of scopes associated with this token.
- clientId- Client identifier for the OAuth 2.0 client that requested this token.
- username- Human-readable identifier for the resource owner who authorized this token.
- exp- Integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire as defined in JWT.
- 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.
- nbf- Integer 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.
- sub- Subject of the token, as defined in JWT [RFC7519]. Usually a machine-readable identifier of the resource owner who authorized this token.
- aud- Service-specific string identifier or list of string identifiers representing the intended audience for this token, as defined in JWT.
- iss- String representing the issuer of this token, as defined in JWT.
- jti- String identifier for the token, as defined in JWT.
- extensions- Extensions
 
 
- 
- 
Method Details- 
addExtension- Parameters:
- key- Key
- value- Value
 
- 
getExtensions- Returns:
- Extensions
 
- 
isActivepublic boolean isActive()- Returns:
- Boolean indicator of whether or not the presented token is currently active.
 
- 
getScope- Returns:
- A JSON string containing a space-separated list of scopes associated with this token.
 
- 
getClientId- Returns:
- Client identifier for the OAuth 2.0 client that requested this token.
 
- 
getUsername- Returns:
- Human-readable identifier for the resource owner who authorized this token.
 
- 
getTokenType- Returns:
- Type of token.
 
- 
getExp- Returns:
- Integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire as defined in JWT.
 
- 
getIat- Returns:
- Integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued, as defined in JWT.
 
- 
getNbf- Returns:
- 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.
 
- 
getSub- Returns:
- Subject of the token, as defined in JWT [RFC7519]. Usually a machine-readable identifier of the resource owner who authorized this token.
 
- 
getAud- Returns:
- Service-specific string identifier or list of string identifiers representing the intended audience for this token, as defined in JWT
 
- 
getIss- Returns:
- Long timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued, as defined in JWT.
 
- 
getJti- Returns:
- String identifier for the token, as defined in JWT.
 
 
-