public enum PBES1Algorithm extends java.lang.Enum<PBES1Algorithm>
| Enum Constant and Description |
|---|
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.
|
| Modifier and Type | Field and Description |
|---|---|
private BufferedBlockCipherSpec |
cipherSpec
Cipher algorithm specification.
|
private DigestSpec |
digestSpec
Pseudorandom function digest specification.
|
private java.lang.String |
oid
Algorithm identifier OID.
|
| Modifier and Type | Method and Description |
|---|---|
static PBES1Algorithm |
fromOid(java.lang.String oid)
Gets the PBE algorithm for the given object identifier.
|
BufferedBlockCipherSpec |
getCipherSpec() |
DigestSpec |
getDigestSpec() |
java.lang.String |
getOid() |
static PBES1Algorithm |
valueOf(java.lang.String name)
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.
|
public static final PBES1Algorithm PbeWithMD2AndDES_CBC
public static final PBES1Algorithm PbeWithMD2AndRC2_CBC
public static final PBES1Algorithm PbeWithMD5AndDES_CBC
public static final PBES1Algorithm PbeWithMD5AndRC2_CBC
public static final PBES1Algorithm PbeWithSHA1AndDES_CBC
public static final PBES1Algorithm PbeWithSHA1AndRC2_CBC
private final java.lang.String oid
private final BufferedBlockCipherSpec cipherSpec
private final DigestSpec digestSpec
public static PBES1Algorithm[] values()
for (PBES1Algorithm c : PBES1Algorithm.values()) System.out.println(c);
public static PBES1Algorithm valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static PBES1Algorithm fromOid(java.lang.String oid)
oid - PBE algorithm OID.java.lang.IllegalArgumentException - If no matching algorithm found.public java.lang.String getOid()
public BufferedBlockCipherSpec getCipherSpec()
public DigestSpec getDigestSpec()