Class EncryptionSettings
java.lang.Object
com.azure.resourcemanager.appcontainers.models.EncryptionSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EncryptionSettings>
public final class EncryptionSettings
extends Object
implements com.azure.json.JsonSerializable<EncryptionSettings>
The configuration settings of the secrets references of encryption key and signing key for ContainerApp Service
Authentication/Authorization.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the containerAppAuthEncryptionSecretName property: The secret name which is referenced for EncryptionKey.Get the containerAppAuthSigningSecretName property: The secret name which is referenced for SigningKey.static EncryptionSettings
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of EncryptionSettings from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withContainerAppAuthEncryptionSecretName
(String containerAppAuthEncryptionSecretName) Set the containerAppAuthEncryptionSecretName property: The secret name which is referenced for EncryptionKey.withContainerAppAuthSigningSecretName
(String containerAppAuthSigningSecretName) Set the containerAppAuthSigningSecretName property: The secret name which is referenced for SigningKey.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
EncryptionSettings
public EncryptionSettings()Creates an instance of EncryptionSettings class.
-
-
Method Details
-
containerAppAuthEncryptionSecretName
Get the containerAppAuthEncryptionSecretName property: The secret name which is referenced for EncryptionKey.- Returns:
- the containerAppAuthEncryptionSecretName value.
-
withContainerAppAuthEncryptionSecretName
public EncryptionSettings withContainerAppAuthEncryptionSecretName(String containerAppAuthEncryptionSecretName) Set the containerAppAuthEncryptionSecretName property: The secret name which is referenced for EncryptionKey.- Parameters:
containerAppAuthEncryptionSecretName
- the containerAppAuthEncryptionSecretName value to set.- Returns:
- the EncryptionSettings object itself.
-
containerAppAuthSigningSecretName
Get the containerAppAuthSigningSecretName property: The secret name which is referenced for SigningKey.- Returns:
- the containerAppAuthSigningSecretName value.
-
withContainerAppAuthSigningSecretName
public EncryptionSettings withContainerAppAuthSigningSecretName(String containerAppAuthSigningSecretName) Set the containerAppAuthSigningSecretName property: The secret name which is referenced for SigningKey.- Parameters:
containerAppAuthSigningSecretName
- the containerAppAuthSigningSecretName value to set.- Returns:
- the EncryptionSettings object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<EncryptionSettings>
- Throws:
IOException
-
fromJson
Reads an instance of EncryptionSettings from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of EncryptionSettings if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the EncryptionSettings.
-