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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UrlSigningKeyfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UrlSigningKey from the JsonReader.keyId()Get the keyId property: Defines the customer defined key Id.Get the keySourceParameters property: Defines the parameters for using customer key vault for Url Signing Key.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the keyId property: Defines the customer defined key Id.withKeySourceParameters(KeyVaultSigningKeyParameters keySourceParameters) Set the keySourceParameters property: Defines the parameters for using customer key vault for Url Signing Key.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
UrlSigningKey
public UrlSigningKey()Creates an instance of UrlSigningKey class.
-
-
Method Details
-
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
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
Get the keySourceParameters property: Defines the parameters for using customer key vault for Url Signing Key.- Returns:
- the keySourceParameters value.
-
withKeySourceParameters
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<UrlSigningKey>- Throws:
IOException
-
fromJson
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.
-