Package org.restlet.ext.crypto.internal
Class HttpAzureSharedKeyHelper
- java.lang.Object
-
- org.restlet.engine.Helper
-
- org.restlet.engine.security.AuthenticatorHelper
-
- org.restlet.ext.crypto.internal.HttpAzureSharedKeyHelper
-
public class HttpAzureSharedKeyHelper extends AuthenticatorHelper
Implements the Shared Key authentication for Azure services. This concerns Blob and Queues on Azure Storage.
More documentation is available here
-
-
Constructor Summary
Constructors Constructor Description HttpAzureSharedKeyHelper()Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidformatResponse(ChallengeWriter cw, ChallengeResponse challenge, Request request, Series<Header> httpHeaders)Formats a challenge response as raw credentials.private static java.lang.StringgetCanonicalizedAzureHeaders(Series<Header> requestHeaders)Returns the canonicalized Azure headers.private static java.lang.StringgetCanonicalizedResourceName(Reference resourceRef)Returns the canonicalized resource name.-
Methods inherited from class org.restlet.engine.security.AuthenticatorHelper
formatRequest, getChallengeScheme, getLogger, isClientSide, isServerSide, parseRequest, parseResponse, setChallengeScheme, setClientSide, setServerSide, updateReference
-
-
-
-
Method Detail
-
getCanonicalizedAzureHeaders
private static java.lang.String getCanonicalizedAzureHeaders(Series<Header> requestHeaders)
Returns the canonicalized Azure headers.- Parameters:
requestHeaders- The list of request headers.- Returns:
- The canonicalized Azure headers.
-
getCanonicalizedResourceName
private static java.lang.String getCanonicalizedResourceName(Reference resourceRef)
Returns the canonicalized resource name.- Parameters:
resourceRef- The resource reference.- Returns:
- The canonicalized resource name.
-
formatResponse
public void formatResponse(ChallengeWriter cw, ChallengeResponse challenge, Request request, Series<Header> httpHeaders)
Description copied from class:AuthenticatorHelperFormats a challenge response as raw credentials.- Overrides:
formatResponsein classAuthenticatorHelper- Parameters:
cw- The header writer to update.challenge- The challenge response to format.request- The parent request.httpHeaders- The current request HTTP headers.
-
-