public enum PBES2Algorithm extends 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 | Method and Description |
---|---|
static PBES2Algorithm |
fromOid(String oid)
Gets the PBE algorithm for the given object identifier.
|
int |
getBlockSize() |
BufferedBlockCipherSpec |
getCipherSpec() |
int |
getKeySize() |
String |
getOid() |
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.
|
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
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 nameNullPointerException
- if the argument is nullpublic static PBES2Algorithm fromOid(String oid)
oid
- PBE algorithm OID.IllegalArgumentException
- If no matching algorithm found.public String getOid()
public BufferedBlockCipherSpec getCipherSpec()
public int getBlockSize()
public int getKeySize()
Copyright © 2003-2024 Virginia Tech. All Rights Reserved.