Package org.webpki.crypto
Enum Class SymEncryptionAlgorithms
- All Implemented Interfaces:
Serializable
,Comparable<SymEncryptionAlgorithms>
,Constable
,CryptoAlgorithms
,EncryptionAlgorithms
public enum SymEncryptionAlgorithms
extends Enum<SymEncryptionAlgorithms>
implements EncryptionAlgorithms
Symmetric key encryption algorithms.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic SymEncryptionAlgorithms
getAlgorithmFromId
(String algorithmId) getAlgorithmId
(AlgorithmPreferences algorithmPreferences) int
getOid()
boolean
boolean
boolean
boolean
needsIv()
boolean
static SymEncryptionAlgorithms
Returns the enum constant of this class with the specified name.static SymEncryptionAlgorithms[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface org.webpki.crypto.CryptoAlgorithms
getCoseAlgorithmId, getJoseAlgorithmId, isSymmetric
-
Enum Constant Details
-
AES128_CBC
-
AES192_CBC
-
AES256_CBC
-
KW_AES128
-
KW_AES256
-
AES_ECB_NOPAD
-
AES_ECB_PAD
-
AES_CBC_NOPAD
-
AES_CBC_PAD
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isMandatorySksAlgorithm
public boolean isMandatorySksAlgorithm()- Specified by:
isMandatorySksAlgorithm
in interfaceCryptoAlgorithms
-
getJceName
- Specified by:
getJceName
in interfaceCryptoAlgorithms
-
getOid
- Specified by:
getOid
in interfaceCryptoAlgorithms
-
getKeyLength
public int getKeyLength() -
needsIv
public boolean needsIv() -
internalIv
public boolean internalIv() -
needsPadding
public boolean needsPadding() -
getAlgorithmFromId
-
getAlgorithmId
- Specified by:
getAlgorithmId
in interfaceCryptoAlgorithms
-
isDeprecated
public boolean isDeprecated()- Specified by:
isDeprecated
in interfaceCryptoAlgorithms
-
getKeyType
- Specified by:
getKeyType
in interfaceCryptoAlgorithms
-