Package com.vonage.client.auth.camara
Class NetworkAuthMethod
java.lang.Object
com.vonage.client.auth.AbstractAuthMethod
com.vonage.client.auth.BearerAuthMethod
com.vonage.client.auth.camara.NetworkAuthMethod
- All Implemented Interfaces:
AuthMethod,HeaderAuthMethod,Comparable<AuthMethod>
Auth method for Vonage Network APIs. Designed to be replaced on each request.
-
Constructor Summary
ConstructorsConstructorDescriptionNetworkAuthMethod(NetworkAuthClient client, BackendAuthRequest request) Creates a new Bearer auth method which uses the specified params to automatically obtain the token parameters in order to exchange them for an access token.NetworkAuthMethod(NetworkAuthClient client, TokenRequest request) Creates a new Bearer auth method which uses the specified params to exchange for an access token. -
Method Summary
Methods inherited from class com.vonage.client.auth.BearerAuthMethod
getHeaderValueMethods inherited from class com.vonage.client.auth.AbstractAuthMethod
equals, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vonage.client.auth.AuthMethod
compareTo
-
Constructor Details
-
NetworkAuthMethod
Creates a new Bearer auth method which uses the specified params to exchange for an access token.- Parameters:
client- The network auth client to use.request- The token request parameters.
-
NetworkAuthMethod
Creates a new Bearer auth method which uses the specified params to automatically obtain the token parameters in order to exchange them for an access token.- Parameters:
client- The network auth client to use.request- The initial Back-End request parameters to use for obtaining the tokens.
-
-
Method Details
-
getBearerToken
- Specified by:
getBearerTokenin classBearerAuthMethod
-
getSortKey
-