Class AzureKeyCredential


  • public final class AzureKeyCredential
    extends Object
    Represents a credential that uses a key to authenticate to an Azure Service.
    • Constructor Detail

      • AzureKeyCredential

        public AzureKeyCredential​(String key)
        Creates a credential that authorizes request with the given key.
        Parameters:
        key - The key used to authorize requests.
        Throws:
        NullPointerException - If key is null.
        IllegalArgumentException - If key is an empty string.
    • Method Detail

      • getKey

        public String getKey()
        Retrieves the key associated to this credential.
        Returns:
        The key being used to authorize requests.