Class AzureKeyCredentialPolicy

  • All Implemented Interfaces:
    HttpPipelinePolicy

    public class AzureKeyCredentialPolicy
    extends java.lang.Object
    implements HttpPipelinePolicy
    Pipeline policy that uses an AzureKeyCredential to set the authorization key for a request.

    Requests sent with this pipeline policy are required to use HTTPS. If the request isn't using HTTPS an exception will be thrown to prevent leaking the key.

    • Constructor Summary

      Constructors 
      Constructor Description
      AzureKeyCredentialPolicy​(java.lang.String name, com.azure.android.core.credential.AzureKeyCredential credential)
      Creates a policy that uses the provided AzureKeyCredential to set the specified header name.