public class OAuth2TokenStore
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
OAuth2TokenStore.FailedAcquireCredentialException
Exception for error case where we failed to acquire initial credential
for OAuth 2 authentication and authorization.
|
static class |
OAuth2TokenStore.FailedTokenRefreshException
Exception for error case where we failed to refresh the OAuth 2 authn
token.
|
Constructor and Description |
---|
OAuth2TokenStore() |
Modifier and Type | Method and Description |
---|---|
com.google.api.client.auth.oauth2.Credential |
get(java.lang.String identity)
Get the credential from the store.
|
void |
refresh()
Refresh OAuth2 authentication token.
|
public com.google.api.client.auth.oauth2.Credential get(java.lang.String identity) throws OAuth2TokenStore.FailedAcquireCredentialException
identity
- The identity of the API token.OAuth2TokenStore.FailedAcquireCredentialException
java.net.MalformedURLException
- In case requesting authn token failed.public void refresh() throws java.io.IOException, OAuth2TokenStore.FailedTokenRefreshException
java.io.IOException
OAuth2TokenStore.FailedTokenRefreshException
- In case of failed token refresh
operation.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.