public class AccessToken extends PaymentsMap
Constructor and Description |
---|
AccessToken(java.lang.String token,
java.lang.String refreshToken,
java.lang.Long expires) |
Modifier and Type | Method and Description |
---|---|
static AccessToken |
create(Authentication authentication,
java.lang.String authorizationCode,
java.lang.String redirectUri) |
static AccessToken |
create(java.lang.String scope)
Deprecated.
Please use createClientCredentials instead.
|
static AccessToken |
create(java.lang.String authorizationCode,
java.lang.String redirectUri) |
static AccessToken |
createClientCredentials(Authentication authentication,
java.lang.String scope) |
static AccessToken |
createClientCredentials(java.lang.String scope)
Create a ClientCredentials granted Oauth AccessToken.
|
void |
refreshToken() |
void |
refreshToken(Authentication authentication) |
void |
revokeToken() |
void |
revokeToken(Authentication authentication) |
containsKey, get, normalize, put, remove, set
clear, containsValue, entrySet, forEach, getOrDefault, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, isEmpty, merge, putAll, putIfAbsent, remove, replace, replace, size
public AccessToken(java.lang.String token, java.lang.String refreshToken, java.lang.Long expires)
public void refreshToken() throws ApiCommunicationException, AuthenticationException, InvalidRequestException, ObjectNotFoundException, NotAllowedException, SystemException
public void refreshToken(Authentication authentication) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, ObjectNotFoundException, NotAllowedException, SystemException
public void revokeToken() throws ApiCommunicationException, AuthenticationException, InvalidRequestException, ObjectNotFoundException, NotAllowedException, SystemException
public void revokeToken(Authentication authentication) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, ObjectNotFoundException, NotAllowedException, SystemException
@Deprecated public static AccessToken create(java.lang.String scope) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, ObjectNotFoundException, NotAllowedException, SystemException
scope
- ApiCommunicationException
AuthenticationException
InvalidRequestException
ObjectNotFoundException
NotAllowedException
SystemException
public static AccessToken createClientCredentials(java.lang.String scope) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, ObjectNotFoundException, NotAllowedException, SystemException
scope
- ApiCommunicationException
AuthenticationException
InvalidRequestException
ObjectNotFoundException
NotAllowedException
SystemException
public static AccessToken createClientCredentials(Authentication authentication, java.lang.String scope) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, ObjectNotFoundException, NotAllowedException, SystemException
public static AccessToken create(java.lang.String authorizationCode, java.lang.String redirectUri) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, ObjectNotFoundException, NotAllowedException, SystemException
public static AccessToken create(Authentication authentication, java.lang.String authorizationCode, java.lang.String redirectUri) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, ObjectNotFoundException, NotAllowedException, SystemException