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 Details

    • EncryptionSettings

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

    • containerAppAuthEncryptionSecretName

      public String 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

      public String 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

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

      public static EncryptionSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.