public abstract class CosmosAuthorizationHeaderImpl extends ServiceImp
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_METADATA_KEY
The default metadata key for the
setTargetKey(String); set to be "Authorization". |
static java.lang.String |
X_MS_DATE
The "x-ms-date" header, added as metadata by the services.
|
logCONFIRMATION_ID_KEY| Constructor and Description |
|---|
CosmosAuthorizationHeaderImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeService() |
@NonNull java.lang.String |
getHttpVerb()
The Verb portion of the hashed token signature is the HTTP verb, such as GET, POST, or PUT.
|
@NonNull java.lang.String |
getMasterKey()
Your master key token.
|
java.lang.String |
getTargetKey()
The metadata key that will hold the Authorization output.
|
protected void |
initService() |
void |
prepare() |
void |
setHttpVerb(@NonNull java.lang.String httpVerb)
The Verb portion of the hashed token signature is the HTTP verb, such as GET, POST, or PUT.
|
void |
setMasterKey(@NonNull java.lang.String masterKey)
Your master key token.
|
void |
setTargetKey(java.lang.String targetKey)
The metadata key that will hold the Authorization output.
|
protected java.lang.String |
targetKey() |
<T extends CosmosAuthorizationHeaderImpl> |
withHttpVerb(java.lang.String s) |
<T extends CosmosAuthorizationHeaderImpl> |
withMasterKey(java.lang.String s) |
<T extends CosmosAuthorizationHeaderImpl> |
withTargetKey(java.lang.String s) |
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getLookupName, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setLookupName, setUniqueId, start, stoppublic static final java.lang.String DEFAULT_METADATA_KEY
setTargetKey(String); set to be "Authorization".public static final java.lang.String X_MS_DATE
public void prepare()
throws CoreException
CoreExceptionprotected void initService()
throws CoreException
initService in class ServiceImpCoreExceptionprotected void closeService()
closeService in class ServiceImppublic <T extends CosmosAuthorizationHeaderImpl> T withMasterKey(java.lang.String s)
public <T extends CosmosAuthorizationHeaderImpl> T withTargetKey(java.lang.String s)
public <T extends CosmosAuthorizationHeaderImpl> T withHttpVerb(java.lang.String s)
protected java.lang.String targetKey()
public java.lang.String getTargetKey()
public void setTargetKey(java.lang.String targetKey)
@NonNull public @NonNull java.lang.String getHttpVerb()
public void setHttpVerb(@NonNull
@NonNull java.lang.String httpVerb)
@NonNull public @NonNull java.lang.String getMasterKey()
public void setMasterKey(@NonNull
@NonNull java.lang.String masterKey)