Package sh.ory.hydra.model
Class OAuth2TokenIntrospection
- java.lang.Object
-
- sh.ory.hydra.model.OAuth2TokenIntrospection
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2021-01-12T16:13:57.119092Z[GMT]") public class OAuth2TokenIntrospection extends Object
https://tools.ietf.org/html/rfc7662
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_ACTIVEstatic StringSERIALIZED_NAME_AUDstatic StringSERIALIZED_NAME_CLIENT_IDstatic StringSERIALIZED_NAME_EXPstatic StringSERIALIZED_NAME_EXTstatic StringSERIALIZED_NAME_IATstatic StringSERIALIZED_NAME_ISSstatic StringSERIALIZED_NAME_NBFstatic StringSERIALIZED_NAME_OBFUSCATED_SUBJECTstatic StringSERIALIZED_NAME_SCOPEstatic StringSERIALIZED_NAME_SUBstatic StringSERIALIZED_NAME_TOKEN_TYPEstatic StringSERIALIZED_NAME_TOKEN_USEstatic StringSERIALIZED_NAME_USERNAME
-
Constructor Summary
Constructors Constructor Description OAuth2TokenIntrospection()
-
Method Summary
Modifier and Type Method Description OAuth2TokenIntrospectionactive(Boolean active)OAuth2TokenIntrospectionaddAudItem(String audItem)OAuth2TokenIntrospectionaud(List<String> aud)OAuth2TokenIntrospectionclientId(String clientId)booleanequals(Object o)OAuth2TokenIntrospectionexp(Long exp)OAuth2TokenIntrospectionext(Object ext)BooleangetActive()Active is a boolean indicator of whether or not the presented token is currently active.List<String>getAud()Audience contains a list of the token's intended audiences.StringgetClientId()ID is aclient identifier for the OAuth 2.0 client that requested this token.LonggetExp()Expires at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire.ObjectgetExt()Extra is arbitrary data set by the session.LonggetIat()Issued at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued.StringgetIss()IssuerURL is a string representing the issuer of this tokenLonggetNbf()NotBefore is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token is not to be used before.StringgetObfuscatedSubject()ObfuscatedSubject is set when the subject identifier algorithm was set to \"pairwise\" during authorization.StringgetScope()Scope is a JSON string containing a space-separated list of scopes associated with this token.StringgetSub()Subject of the token, as defined in JWT [RFC7519].StringgetTokenType()TokenType is the introspected token's type, typically `Bearer`.StringgetTokenUse()TokenUse is the introspected token's use, for example `access_token` or `refresh_token`.StringgetUsername()Username is a human-readable identifier for the resource owner who authorized this token.inthashCode()OAuth2TokenIntrospectioniat(Long iat)OAuth2TokenIntrospectioniss(String iss)OAuth2TokenIntrospectionnbf(Long nbf)OAuth2TokenIntrospectionobfuscatedSubject(String obfuscatedSubject)OAuth2TokenIntrospectionscope(String scope)voidsetActive(Boolean active)voidsetAud(List<String> aud)voidsetClientId(String clientId)voidsetExp(Long exp)voidsetExt(Object ext)voidsetIat(Long iat)voidsetIss(String iss)voidsetNbf(Long nbf)voidsetObfuscatedSubject(String obfuscatedSubject)voidsetScope(String scope)voidsetSub(String sub)voidsetTokenType(String tokenType)voidsetTokenUse(String tokenUse)voidsetUsername(String username)OAuth2TokenIntrospectionsub(String sub)OAuth2TokenIntrospectiontokenType(String tokenType)OAuth2TokenIntrospectiontokenUse(String tokenUse)StringtoString()OAuth2TokenIntrospectionusername(String username)
-
-
-
Field Detail
-
SERIALIZED_NAME_ACTIVE
public static final String SERIALIZED_NAME_ACTIVE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_AUD
public static final String SERIALIZED_NAME_AUD
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CLIENT_ID
public static final String SERIALIZED_NAME_CLIENT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXP
public static final String SERIALIZED_NAME_EXP
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXT
public static final String SERIALIZED_NAME_EXT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IAT
public static final String SERIALIZED_NAME_IAT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ISS
public static final String SERIALIZED_NAME_ISS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NBF
public static final String SERIALIZED_NAME_NBF
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_OBFUSCATED_SUBJECT
public static final String SERIALIZED_NAME_OBFUSCATED_SUBJECT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SCOPE
public static final String SERIALIZED_NAME_SCOPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUB
public static final String SERIALIZED_NAME_SUB
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOKEN_TYPE
public static final String SERIALIZED_NAME_TOKEN_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOKEN_USE
public static final String SERIALIZED_NAME_TOKEN_USE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_USERNAME
public static final String SERIALIZED_NAME_USERNAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
active
public OAuth2TokenIntrospection active(Boolean active)
-
getActive
public Boolean getActive()
Active is a boolean indicator of whether or not the presented token is currently active. The specifics of a token's \"active\" state will vary depending on the implementation of the authorization server and the information it keeps about its tokens, but a \"true\" value return for the \"active\" property will generally indicate that a given token has been issued by this authorization server, has not been revoked by the resource owner, and is within its given time window of validity (e.g., after its issuance time and before its expiration time).- Returns:
- active
-
setActive
public void setActive(Boolean active)
-
aud
public OAuth2TokenIntrospection aud(List<String> aud)
-
addAudItem
public OAuth2TokenIntrospection addAudItem(String audItem)
-
getAud
@Nullable public List<String> getAud()
Audience contains a list of the token's intended audiences.- Returns:
- aud
-
clientId
public OAuth2TokenIntrospection clientId(String clientId)
-
getClientId
@Nullable public String getClientId()
ID is aclient identifier for the OAuth 2.0 client that requested this token.- Returns:
- clientId
-
setClientId
public void setClientId(String clientId)
-
exp
public OAuth2TokenIntrospection exp(Long exp)
-
getExp
@Nullable public Long getExp()
Expires at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire.- Returns:
- exp
-
setExp
public void setExp(Long exp)
-
ext
public OAuth2TokenIntrospection ext(Object ext)
-
setExt
public void setExt(Object ext)
-
iat
public OAuth2TokenIntrospection iat(Long iat)
-
getIat
@Nullable public Long getIat()
Issued at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued.- Returns:
- iat
-
setIat
public void setIat(Long iat)
-
iss
public OAuth2TokenIntrospection iss(String iss)
-
getIss
@Nullable public String getIss()
IssuerURL is a string representing the issuer of this token- Returns:
- iss
-
setIss
public void setIss(String iss)
-
nbf
public OAuth2TokenIntrospection nbf(Long nbf)
-
getNbf
@Nullable public Long getNbf()
NotBefore is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token is not to be used before.- Returns:
- nbf
-
setNbf
public void setNbf(Long nbf)
-
obfuscatedSubject
public OAuth2TokenIntrospection obfuscatedSubject(String obfuscatedSubject)
-
getObfuscatedSubject
@Nullable public String getObfuscatedSubject()
ObfuscatedSubject is set when the subject identifier algorithm was set to \"pairwise\" during authorization. It is the `sub` value of the ID Token that was issued.- Returns:
- obfuscatedSubject
-
setObfuscatedSubject
public void setObfuscatedSubject(String obfuscatedSubject)
-
scope
public OAuth2TokenIntrospection scope(String scope)
-
getScope
@Nullable public String getScope()
Scope is a JSON string containing a space-separated list of scopes associated with this token.- Returns:
- scope
-
setScope
public void setScope(String scope)
-
sub
public OAuth2TokenIntrospection sub(String sub)
-
getSub
@Nullable public String getSub()
Subject of the token, as defined in JWT [RFC7519]. Usually a machine-readable identifier of the resource owner who authorized this token.- Returns:
- sub
-
setSub
public void setSub(String sub)
-
tokenType
public OAuth2TokenIntrospection tokenType(String tokenType)
-
getTokenType
@Nullable public String getTokenType()
TokenType is the introspected token's type, typically `Bearer`.- Returns:
- tokenType
-
setTokenType
public void setTokenType(String tokenType)
-
tokenUse
public OAuth2TokenIntrospection tokenUse(String tokenUse)
-
getTokenUse
@Nullable public String getTokenUse()
TokenUse is the introspected token's use, for example `access_token` or `refresh_token`.- Returns:
- tokenUse
-
setTokenUse
public void setTokenUse(String tokenUse)
-
username
public OAuth2TokenIntrospection username(String username)
-
getUsername
@Nullable public String getUsername()
Username is a human-readable identifier for the resource owner who authorized this token.- Returns:
- username
-
setUsername
public void setUsername(String username)
-
-