Package org.cryptacular.pbe
Enum PBES1Algorithm
- All Implemented Interfaces:
Serializable
,Comparable<PBES1Algorithm>
,java.lang.constant.Constable
Password-based encryption algorithms defined in PKCS#5 for PBES1 scheme.
- Version:
- $Revision: 2745 $
- Author:
- Middleware Services
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPBES1 encryption method with MD2 hash and DES CBC cipher.PBES1 encryption method with MD2 hash and RC2 CBC cipher.PBES1 encryption method with MD5 hash and DES CBC cipher.PBES1 encryption method with MD5 hash and RC2 CBC cipher.PBES1 encryption method with SHA1 hash and DES CBC cipher.PBES1 encryption method with SHA1 hash and RC2 CBC cipher. -
Method Summary
Modifier and TypeMethodDescriptionstatic PBES1Algorithm
Gets the PBE algorithm for the given object identifier.getOid()
static PBES1Algorithm
Returns the enum constant of this type with the specified name.static PBES1Algorithm[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PbeWithMD2AndDES_CBC
PBES1 encryption method with MD2 hash and DES CBC cipher. -
PbeWithMD2AndRC2_CBC
PBES1 encryption method with MD2 hash and RC2 CBC cipher. -
PbeWithMD5AndDES_CBC
PBES1 encryption method with MD5 hash and DES CBC cipher. -
PbeWithMD5AndRC2_CBC
PBES1 encryption method with MD5 hash and RC2 CBC cipher. -
PbeWithSHA1AndDES_CBC
PBES1 encryption method with SHA1 hash and DES CBC cipher. -
PbeWithSHA1AndRC2_CBC
PBES1 encryption method with SHA1 hash and RC2 CBC cipher.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromOid
Gets the PBE algorithm for the given object identifier.- Parameters:
oid
- PBE algorithm OID.- Returns:
- Algorithm whose identifier equals given value.
- Throws:
IllegalArgumentException
- If no matching algorithm found.
-
getOid
- Returns:
- the oid
-
getCipherSpec
- Returns:
- Cipher algorithm specification.
-
getDigestSpec
- Returns:
- Digest algorithm.
-