public class AccessTokenAuthenticator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected char[] |
accessToken |
protected RestClient |
coreClient |
protected RestClient |
rstsClient |
protected String |
safeguardCoreUrl |
protected String |
safeguardRstsUrl |
| Constructor and Description |
|---|
AccessTokenAuthenticator(String networkAddress,
char[] accessToken,
int apiVersion,
boolean ignoreSsl) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAccessToken() |
Object |
cloneObject() |
void |
dispose() |
protected void |
finalize() |
char[] |
getAccessToken() |
int |
getAccessTokenLifetimeRemaining() |
int |
getApiVersion() |
String |
getId() |
String |
getNetworkAddress() |
protected char[] |
getRstsTokenInternal() |
boolean |
hasAccessToken() |
boolean |
isAnonymous() |
boolean |
isIgnoreSsl() |
void |
refreshAccessToken() |
protected char[] accessToken
protected final String safeguardRstsUrl
protected final String safeguardCoreUrl
protected RestClient rstsClient
protected RestClient coreClient
public AccessTokenAuthenticator(String networkAddress, char[] accessToken, int apiVersion, boolean ignoreSsl) throws ArgumentException
ArgumentExceptionpublic String getId()
getId in interface IAuthenticationMechanismprotected char[] getRstsTokenInternal()
throws SafeguardForJavaException
SafeguardForJavaExceptionpublic Object cloneObject() throws SafeguardForJavaException
cloneObject in interface IAuthenticationMechanismSafeguardForJavaExceptionpublic void dispose()
dispose in interface IAuthenticationMechanismpublic String getNetworkAddress()
getNetworkAddress in interface IAuthenticationMechanismpublic int getApiVersion()
getApiVersion in interface IAuthenticationMechanismpublic boolean isIgnoreSsl()
isIgnoreSsl in interface IAuthenticationMechanismpublic boolean isAnonymous()
isAnonymous in interface IAuthenticationMechanismpublic boolean hasAccessToken()
hasAccessToken in interface IAuthenticationMechanismpublic void clearAccessToken()
clearAccessToken in interface IAuthenticationMechanismpublic char[] getAccessToken()
throws ObjectDisposedException
getAccessToken in interface IAuthenticationMechanismObjectDisposedExceptionpublic int getAccessTokenLifetimeRemaining()
throws ObjectDisposedException,
SafeguardForJavaException
getAccessTokenLifetimeRemaining in interface IAuthenticationMechanismObjectDisposedExceptionSafeguardForJavaExceptionpublic void refreshAccessToken()
throws ObjectDisposedException,
SafeguardForJavaException
refreshAccessToken in interface IAuthenticationMechanismObjectDisposedExceptionSafeguardForJavaExceptionCopyright © 2019. All rights reserved.