Class Tokens
java.lang.Object
io.camunda.identity.sdk.authentication.Tokens
- All Implemented Interfaces:
Serializable
Authorization tokens data class. An object of this class can be serialized and stored
in a session.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets access token.longGets expires in.Gets refresh token.getScope()Gets scope.Gets token type.
-
Constructor Details
-
Tokens
public Tokens(String accessToken, String refreshToken, long expiresIn, String scope, String tokenType) Instantiates a new Tokens object. This method is internal and must not be used outside of the SDK.- Parameters:
accessToken- the access tokenrefreshToken- the refresh tokenexpiresIn- the expires inscope- the scopetokenType- the token type
-
-
Method Details
-
getAccessToken
Gets access token.- Returns:
- the access token
-
getRefreshToken
Gets refresh token.- Returns:
- the refresh token
-
getExpiresIn
public long getExpiresIn()Gets expires in.- Returns:
- the expires in
-
getScope
Gets scope.- Returns:
- the scope
-
getTokenType
Gets token type.- Returns:
- the token type
-