Package sh.ory.hydra.model
Class OauthTokenResponse
- java.lang.Object
-
- sh.ory.hydra.model.OauthTokenResponse
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-01-06T17:14:34.025635+01:00[Europe/Berlin]") public class OauthTokenResponse extends Object
The token response
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_ACCESS_TOKENstatic StringSERIALIZED_NAME_EXPIRES_INstatic StringSERIALIZED_NAME_ID_TOKENstatic StringSERIALIZED_NAME_REFRESH_TOKENstatic StringSERIALIZED_NAME_SCOPEstatic StringSERIALIZED_NAME_TOKEN_TYPE
-
Constructor Summary
Constructors Constructor Description OauthTokenResponse()
-
Method Summary
Modifier and Type Method Description OauthTokenResponseaccessToken(String accessToken)booleanequals(Object o)OauthTokenResponseexpiresIn(Long expiresIn)StringgetAccessToken()The access token issued by the authorization server.LonggetExpiresIn()The lifetime in seconds of the access token.LonggetIdToken()To retrieve a refresh token request the id_token scope.StringgetRefreshToken()The refresh token, which can be used to obtain new access tokens.LonggetScope()The scope of the access tokenStringgetTokenType()The type of the token issuedinthashCode()OauthTokenResponseidToken(Long idToken)OauthTokenResponserefreshToken(String refreshToken)OauthTokenResponsescope(Long scope)voidsetAccessToken(String accessToken)voidsetExpiresIn(Long expiresIn)voidsetIdToken(Long idToken)voidsetRefreshToken(String refreshToken)voidsetScope(Long scope)voidsetTokenType(String tokenType)OauthTokenResponsetokenType(String tokenType)StringtoString()
-
-
-
Field Detail
-
SERIALIZED_NAME_ACCESS_TOKEN
public static final String SERIALIZED_NAME_ACCESS_TOKEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXPIRES_IN
public static final String SERIALIZED_NAME_EXPIRES_IN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID_TOKEN
public static final String SERIALIZED_NAME_ID_TOKEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFRESH_TOKEN
public static final String SERIALIZED_NAME_REFRESH_TOKEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SCOPE
public static final String SERIALIZED_NAME_SCOPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOKEN_TYPE
public static final String SERIALIZED_NAME_TOKEN_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
accessToken
public OauthTokenResponse accessToken(String accessToken)
-
getAccessToken
@Nullable public String getAccessToken()
The access token issued by the authorization server.- Returns:
- accessToken
-
setAccessToken
public void setAccessToken(String accessToken)
-
expiresIn
public OauthTokenResponse expiresIn(Long expiresIn)
-
getExpiresIn
@Nullable public Long getExpiresIn()
The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated.- Returns:
- expiresIn
-
setExpiresIn
public void setExpiresIn(Long expiresIn)
-
idToken
public OauthTokenResponse idToken(Long idToken)
-
getIdToken
@Nullable public Long getIdToken()
To retrieve a refresh token request the id_token scope.- Returns:
- idToken
-
setIdToken
public void setIdToken(Long idToken)
-
refreshToken
public OauthTokenResponse refreshToken(String refreshToken)
-
getRefreshToken
@Nullable public String getRefreshToken()
The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request.- Returns:
- refreshToken
-
setRefreshToken
public void setRefreshToken(String refreshToken)
-
scope
public OauthTokenResponse scope(Long scope)
-
setScope
public void setScope(Long scope)
-
tokenType
public OauthTokenResponse tokenType(String tokenType)
-
setTokenType
public void setTokenType(String tokenType)
-
-