public interface CredentialsVerifier
Typically a credentials verification is implemented by sending an arbitrary request to the given service and analyse the response. For example if the response's status code is HTTP 401 Unauthorized the verification failed.
Modifier and Type | Method and Description |
---|---|
void |
verify(com.google.gson.JsonObject configuration)
Performs the verification credentials in the given configuration.
|
void verify(com.google.gson.JsonObject configuration) throws InvalidCredentialsException
configuration
- contains OAuth access token, API key,
username/password to be verifiedInvalidCredentialsException
- if the credentials are invalid