Class CosmosAuthorizationInterceptor
- java.lang.Object
-
- com.adaptris.interlok.azure.cosmosdb.CosmosAuthorizationInterceptor
-
- All Implemented Interfaces:
com.adaptris.core.http.apache.request.RequestInterceptorBuilder
,org.apache.http.HttpRequestInterceptor
@ComponentProfile(summary="Builds an authorization header for Azure CosmosDB", since="3.9.2", tag="azure,cosmosdb,cosmos,interceptor") public class CosmosAuthorizationInterceptor extends java.lang.Object implements org.apache.http.HttpRequestInterceptor, com.adaptris.core.http.apache.request.RequestInterceptorBuilder
-
-
Constructor Summary
Constructors Constructor Description CosmosAuthorizationInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.http.HttpRequestInterceptor
build()
@NonNull java.lang.String
getMasterKey()
Your master key token.void
process(org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
void
setMasterKey(@NonNull java.lang.String masterKey)
Your master key token.
-
-
-
Method Detail
-
build
public org.apache.http.HttpRequestInterceptor build()
- Specified by:
build
in interfacecom.adaptris.core.http.apache.request.RequestInterceptorBuilder
-
process
public void process(org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws org.apache.http.HttpException
- Specified by:
process
in interfaceorg.apache.http.HttpRequestInterceptor
- Throws:
org.apache.http.HttpException
-
getMasterKey
@NonNull public @NonNull java.lang.String getMasterKey()
Your master key token.
-
setMasterKey
public void setMasterKey(@NonNull @NonNull java.lang.String masterKey)
Your master key token.
-
-