Class TokenAuthMethod

java.lang.Object
com.vonage.client.auth.AbstractAuthMethod
com.vonage.client.auth.TokenAuthMethod
All Implemented Interfaces:
AuthMethod, java.lang.Comparable<AuthMethod>

public class TokenAuthMethod
extends AbstractAuthMethod
  • Constructor Summary

    Constructors 
    Constructor Description
    TokenAuthMethod​(java.lang.String apiKey, java.lang.String apiSecret)  
  • Method Summary

    Modifier and Type Method Description
    org.apache.http.client.methods.RequestBuilder apply​(org.apache.http.client.methods.RequestBuilder request)  
    org.apache.http.client.methods.RequestBuilder applyAsBasicAuth​(org.apache.http.client.methods.RequestBuilder request)
    Apply the authentication to the header as basic authentication.
    org.apache.http.client.methods.RequestBuilder applyAsJsonProperties​(org.apache.http.client.methods.RequestBuilder request)
    Apply the authentication by adding it to the entity payload.
    int getSortKey()  

    Methods inherited from class com.vonage.client.auth.AbstractAuthMethod

    compareTo

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait