Class OAuth2Response
java.lang.Object
de.dlr.proseo.api.prip.rest.model.OAuth2Response
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new OAuth2Response.OAuth2Response(String accessToken, String tokenType, Long expiresIn) Creates a new OAuth2Response. -
Method Summary
Modifier and TypeMethodDescriptionboolean@NotNull StringReturns the accessToken.@NotNull LongReturns the expiresIn.@NotNull StringReturns the tokenType.inthashCode()voidsetAccessToken(String accessToken) Set the accessToken.voidsetExpiresIn(Long expiresIn) Set the expiresIn.voidsetTokenType(String tokenType) Set the tokenType.toString()
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
accessToken
The access token issued by the authorization server (as per RFC 6749) -
tokenType
The type of the token issued (as per RFC 6749; always "bearer") -
expiresIn
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 (as per RFC 6749)
-
-
Constructor Details
-
OAuth2Response
public OAuth2Response()Creates a new OAuth2Response. -
OAuth2Response
Creates a new OAuth2Response.
-
-
Method Details
-
getAccessToken
Returns the accessToken.- Returns:
- accessToken
-
setAccessToken
Set the accessToken.- Parameters:
accessToken- the new accessToken
-
getTokenType
Returns the tokenType.- Returns:
- tokenType
-
setTokenType
Set the tokenType.- Parameters:
tokenType- the new tokenType
-
getExpiresIn
Returns the expiresIn.- Returns:
- expiresIn
-
setExpiresIn
Set the expiresIn.- Parameters:
expiresIn- the new expiresIn
-
hashCode
public int hashCode() -
equals
-
toString
-