public enum PBES2Algorithm extends java.lang.Enum<PBES2Algorithm>
| Enum Constant and Description |
|---|
AES128
AES-128 CBC cipher.
|
AES192
AES-192 CBC cipher.
|
AES256
AES-256 CBC cipher.
|
DES
DES CBC cipher.
|
DESede
3-DES CBC cipher.
|
RC2
RC2 CBC cipher.
|
RC5
RC5 CBC cipher.
|
| Modifier and Type | Field and Description |
|---|---|
private BufferedBlockCipherSpec |
cipherSpec
Cipher algorithm specification.
|
private int |
keySize
Cipher key size in bits.
|
private java.lang.String |
oid
Algorithm identifier OID.
|
| Modifier and Type | Method and Description |
|---|---|
static PBES2Algorithm |
fromOid(java.lang.String oid)
Gets the PBE algorithm for the given object identifier.
|
BufferedBlockCipherSpec |
getCipherSpec() |
int |
getKeySize() |
java.lang.String |
getOid() |
static PBES2Algorithm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PBES2Algorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PBES2Algorithm DES
public static final PBES2Algorithm DESede
public static final PBES2Algorithm RC2
public static final PBES2Algorithm RC5
public static final PBES2Algorithm AES128
public static final PBES2Algorithm AES192
public static final PBES2Algorithm AES256
private final java.lang.String oid
private final BufferedBlockCipherSpec cipherSpec
private final int keySize
public static PBES2Algorithm[] values()
for (PBES2Algorithm c : PBES2Algorithm.values()) System.out.println(c);
public static PBES2Algorithm 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 PBES2Algorithm 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 int getKeySize()