|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<PBES2Algorithm>
edu.vt.middleware.crypt.pkcs.PBES2Algorithm
public enum PBES2Algorithm
Supported password-based encryption algorithms for PKCS#5 PBES2 encryption scheme. The ciphers mentioned in PKCS#5 are supported as well as others in common use or of presumed value.
| Enum Constant Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
static PBES2Algorithm |
fromOid(String oid)
Gets the PBE algorithm for the given object identifier. |
int |
getKeySize()
|
String |
getOid()
|
AlgorithmSpec |
getSpec()
|
static PBES2Algorithm |
valueOf(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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
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
| Method Detail |
|---|
public static PBES2Algorithm[] values()
for (PBES2Algorithm c : PBES2Algorithm.values()) System.out.println(c);
public static PBES2Algorithm valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static PBES2Algorithm fromOid(String oid)
oid - PBE algorithm OID.
IllegalArgumentException - If no matching algorithm found.public String getOid()
public AlgorithmSpec getSpec()
public int getKeySize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||