public abstract class RequestAuthenticator
extends java.lang.Object
| Constructor and Description |
|---|
RequestAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
static RequestAuthenticator |
createForApplicationPassword(java.lang.String username,
java.lang.String appPassword)
Creates an authenticator for username and application password.
|
static RequestAuthenticator |
createForOauthToken(java.lang.String token)
Creates an authenticator that uses provided OAuth token.
|
public static RequestAuthenticator createForApplicationPassword(java.lang.String username, java.lang.String appPassword)
See App passwords in the API docs.
username - the usernameappPassword - the application passwordpublic static RequestAuthenticator createForOauthToken(java.lang.String token)
See API docs.
token - the oauth token