Package com.nexmo.client.auth
Interface AuthMethod
-
- All Superinterfaces:
java.lang.Comparable<AuthMethod>
- All Known Implementing Classes:
AbstractAuthMethod,JWTAuthMethod,SignatureAuthMethod,TokenAuthMethod
public interface AuthMethod extends java.lang.Comparable<AuthMethod>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.http.client.methods.RequestBuilderapply(org.apache.http.client.methods.RequestBuilder request)org.apache.http.client.methods.RequestBuilderapplyAsBasicAuth(org.apache.http.client.methods.RequestBuilder requestBuilder)Apply the authentication to the header as basic authentication.org.apache.http.client.methods.RequestBuilderapplyAsJsonProperties(org.apache.http.client.methods.RequestBuilder requestBuilder)Apply the authentication by adding it to the entity payload.intgetSortKey()
-
-
-
Method Detail
-
apply
org.apache.http.client.methods.RequestBuilder apply(org.apache.http.client.methods.RequestBuilder request)
-
applyAsBasicAuth
org.apache.http.client.methods.RequestBuilder applyAsBasicAuth(org.apache.http.client.methods.RequestBuilder requestBuilder)
Apply the authentication to the header as basic authentication.- Parameters:
requestBuilder- The request being built- Returns:
- RequestBuilder for more building of the request.
-
applyAsJsonProperties
org.apache.http.client.methods.RequestBuilder applyAsJsonProperties(org.apache.http.client.methods.RequestBuilder requestBuilder)
Apply the authentication by adding it to the entity payload.- Parameters:
requestBuilder- The request being built- Returns:
- RequestBuilder for more building of the request.
-
getSortKey
int getSortKey()
-
-