@Deprecated public abstract class BaseTokenProvider extends Object implements ITokenProvider
Class BaseTokenProvider is base class for oauth token providers. Note: This class obsolete and will be removed soon. Please, use 'TokenProvider' class instead of it.
Constructor and Description |
---|
BaseTokenProvider()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
dispose()
Deprecated.
Performs releasing resources.
|
abstract OAuthToken |
getAccessToken()
Deprecated.
Gets oAuth access token.
|
abstract OAuthToken |
getAccessToken(boolean ignoreExistingToken)
Deprecated.
Gets oAuth access token.
|
abstract String |
getClientId()
Deprecated.
The client ID obtained during application registration.
|
abstract String |
getClientSecret()
Deprecated.
The client secret obtained during application registration.
|
abstract String |
getRefreshToken()
Deprecated.
OAuth 2.0 refresh token
|
public abstract String getClientId()
The client ID obtained during application registration.
String
object.public abstract String getClientSecret()
The client secret obtained during application registration.
String
object.public abstract String getRefreshToken()
OAuth 2.0 refresh token
String
object.public abstract OAuthToken getAccessToken()
Gets oAuth access token. If token exists and its expiration date is not expired returns current token, otherwise requests new token from a server.
getAccessToken
in interface ITokenProvider
public abstract OAuthToken getAccessToken(boolean ignoreExistingToken)
Gets oAuth access token.
getAccessToken
in interface ITokenProvider
ignoreExistingToken
- If ignoreExistingToken is true, requests new token from a server. Otherwise behaviour is depended on whether token exists or not.
If token exists and its expiration date is not expired returns current token, otherwise requests new token from a server.public abstract void dispose()
Performs releasing resources.
dispose
in interface com.aspose.ms.System.IDisposable
Copyright (c) 2008-2016 Aspose Pty Ltd. All Rights Reserved.