Class EncryptionAlgorithm
java.lang.Object
com.azure.core.util.ExpandableStringEnum<EncryptionAlgorithm>
com.azure.security.keyvault.keys.cryptography.models.EncryptionAlgorithm
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class EncryptionAlgorithm
extends com.azure.core.util.ExpandableStringEnum<EncryptionAlgorithm>
Defines values for EncryptionAlgorithm.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EncryptionAlgorithm
128-bit AES-CBC.static final EncryptionAlgorithm
128-bit AES-CBC with 256-bit HMAC.static final EncryptionAlgorithm
128-bit AES-CBC with PKCS padding.static final EncryptionAlgorithm
128-bit AES-GCM.static final EncryptionAlgorithm
Deprecated.This value is not supported for encrypt/decrypt operations.static final EncryptionAlgorithm
192-bit AES-CBC.static final EncryptionAlgorithm
256-bit AES-CBC with 384-bit HMAC.static final EncryptionAlgorithm
192-bit AES-CBC with PKCS padding.static final EncryptionAlgorithm
192-bit AES-GCM.static final EncryptionAlgorithm
Deprecated.This value is not supported for encrypt/decrypt operations.static final EncryptionAlgorithm
256-bit AES-CBC.static final EncryptionAlgorithm
256-bit AES-CBC with 512-bit HMAC.static final EncryptionAlgorithm
256-bit AES-CBC with PKCS padding.static final EncryptionAlgorithm
256-bit AES-GCM.static final EncryptionAlgorithm
Deprecated.This value is not supported for encrypt/decrypt operations.static final EncryptionAlgorithm
[Not recommended] RSAES using Optimal Asymmetric Encryption Padding (OAEP), as described in https://tools.ietf.org/html/rfc3447, with the default parameters specified by RFC 3447 in Section A.2.1.static final EncryptionAlgorithm
RSAES using Optimal Asymmetric Encryption Padding with a hash function of SHA-256 and a mask generation function of MGF1 with SHA-256.static final EncryptionAlgorithm
[Not recommended] RSAES-PKCS1-V1_5 key encryption, as described in https://tools.ietf.org/html/rfc3447. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EncryptionAlgorithm
fromString
(String name) Creates or finds a EncryptionAlgorithm from its string representation.static Collection
<EncryptionAlgorithm> values()
Gets known EncryptionAlgorithm values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
RSA_OAEP
[Not recommended] RSAES using Optimal Asymmetric Encryption Padding (OAEP), as described in https://tools.ietf.org/html/rfc3447, with the default parameters specified by RFC 3447 in Section A.2.1. Those default parameters are using a hash function of SHA-1 and a mask generation function of MGF1 with SHA-1. Microsoft recommends using RSA_OAEP_256 or stronger algorithms for enhanced security. Microsoft does *not* recommend RSA_OAEP, which is included solely for backwards compatibility. RSA_OAEP utilizes SHA1, which has known collision problems. -
RSA_OAEP_256
RSAES using Optimal Asymmetric Encryption Padding with a hash function of SHA-256 and a mask generation function of MGF1 with SHA-256. -
RSA1_5
[Not recommended] RSAES-PKCS1-V1_5 key encryption, as described in https://tools.ietf.org/html/rfc3447. Microsoft recommends using RSA_OAEP_256 or stronger algorithms for enhanced security. Microsoft does *not* recommend RSA_1_5, which is included solely for backwards compatibility. Cryptographic standards no longer consider RSA with the PKCS#1 v1.5 padding scheme secure for encryption. -
A128CBC
128-bit AES-CBC. -
A192CBC
192-bit AES-CBC. -
A256CBC
256-bit AES-CBC. -
A128CBCPAD
128-bit AES-CBC with PKCS padding. -
A192CBCPAD
192-bit AES-CBC with PKCS padding. -
A256CBCPAD
256-bit AES-CBC with PKCS padding. -
A128CBC_HS256
128-bit AES-CBC with 256-bit HMAC. -
A192CBC_HS384
256-bit AES-CBC with 384-bit HMAC. -
A256CBC_HS512
256-bit AES-CBC with 512-bit HMAC. -
A128GCM
128-bit AES-GCM. -
A192GCM
192-bit AES-GCM. -
A256GCM
256-bit AES-GCM. -
A128KW
Deprecated.This value is not supported for encrypt/decrypt operations. For key wrapping/unwrapping, useKeyWrapAlgorithm.A128KW
inKeyWrapAlgorithm
instead.128-bit AES key wrap. -
A192KW
Deprecated.This value is not supported for encrypt/decrypt operations. For key wrapping/unwrapping, useKeyWrapAlgorithm.A192KW
inKeyWrapAlgorithm
instead.192-bit AES key wrap. -
A256KW
Deprecated.This value is not supported for encrypt/decrypt operations. For key wrapping/unwrapping, useKeyWrapAlgorithm.A256KW
inKeyWrapAlgorithm
instead.256-bit AES key wrap.
-
-
Constructor Details
-
EncryptionAlgorithm
Deprecated.Use thefromString(String)
factory method.Creates a new instance ofEncryptionAlgorithm
without aExpandableStringEnum.toString()
value.This constructor shouldn't be called as it will produce a
EncryptionAlgorithm
which doesn't have a String enum value.
-
-
Method Details
-
fromString
Creates or finds a EncryptionAlgorithm from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding EncryptionAlgorithm.
-
values
Gets known EncryptionAlgorithm values.- Returns:
- known EncryptionAlgorithm values.
-