Class AsymmetricEncryptedSecret
java.lang.Object
com.azure.resourcemanager.databoxedge.models.AsymmetricEncryptedSecret
Represent the secrets intended for encryption with asymmetric key pair.
-
Constructor Summary
ConstructorDescriptionCreates an instance of AsymmetricEncryptedSecret class. -
Method Summary
Modifier and TypeMethodDescriptionGet the encryptionAlgorithm property: The algorithm used to encrypt "Value".Get the encryptionCertThumbprint property: Thumbprint certificate used to encrypt \"Value\".void
validate()
Validates the instance.value()
Get the value property: The value of the secret.withEncryptionAlgorithm
(EncryptionAlgorithm encryptionAlgorithm) Set the encryptionAlgorithm property: The algorithm used to encrypt "Value".withEncryptionCertThumbprint
(String encryptionCertThumbprint) Set the encryptionCertThumbprint property: Thumbprint certificate used to encrypt \"Value\".Set the value property: The value of the secret.
-
Constructor Details
-
AsymmetricEncryptedSecret
public AsymmetricEncryptedSecret()Creates an instance of AsymmetricEncryptedSecret class.
-
-
Method Details
-
value
Get the value property: The value of the secret.- Returns:
- the value value.
-
withValue
Set the value property: The value of the secret.- Parameters:
value
- the value value to set.- Returns:
- the AsymmetricEncryptedSecret object itself.
-
encryptionCertThumbprint
Get the encryptionCertThumbprint property: Thumbprint certificate used to encrypt \"Value\". If the value is unencrypted, it will be null.- Returns:
- the encryptionCertThumbprint value.
-
withEncryptionCertThumbprint
Set the encryptionCertThumbprint property: Thumbprint certificate used to encrypt \"Value\". If the value is unencrypted, it will be null.- Parameters:
encryptionCertThumbprint
- the encryptionCertThumbprint value to set.- Returns:
- the AsymmetricEncryptedSecret object itself.
-
encryptionAlgorithm
Get the encryptionAlgorithm property: The algorithm used to encrypt "Value".- Returns:
- the encryptionAlgorithm value.
-
withEncryptionAlgorithm
Set the encryptionAlgorithm property: The algorithm used to encrypt "Value".- Parameters:
encryptionAlgorithm
- the encryptionAlgorithm value to set.- Returns:
- the AsymmetricEncryptedSecret object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-