Class UrlSigningKey

java.lang.Object
com.azure.resourcemanager.cdn.models.UrlSigningKey
All Implemented Interfaces:
com.azure.json.JsonSerializable<UrlSigningKey>

public final class UrlSigningKey extends Object implements com.azure.json.JsonSerializable<UrlSigningKey>
Url signing key.
  • Constructor Details

    • UrlSigningKey

      public UrlSigningKey()
      Creates an instance of UrlSigningKey class.
  • Method Details

    • keyId

      public String keyId()
      Get the keyId property: Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash.
      Returns:
      the keyId value.
    • withKeyId

      public UrlSigningKey withKeyId(String keyId)
      Set the keyId property: Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash.
      Parameters:
      keyId - the keyId value to set.
      Returns:
      the UrlSigningKey object itself.
    • keySourceParameters

      public KeyVaultSigningKeyParameters keySourceParameters()
      Get the keySourceParameters property: Defines the parameters for using customer key vault for Url Signing Key.
      Returns:
      the keySourceParameters value.
    • withKeySourceParameters

      public UrlSigningKey withKeySourceParameters(KeyVaultSigningKeyParameters keySourceParameters)
      Set the keySourceParameters property: Defines the parameters for using customer key vault for Url Signing Key.
      Parameters:
      keySourceParameters - the keySourceParameters value to set.
      Returns:
      the UrlSigningKey object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<UrlSigningKey>
      Throws:
      IOException
    • fromJson

      public static UrlSigningKey fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of UrlSigningKey from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of UrlSigningKey if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the UrlSigningKey.