public enum PBES1Algorithm extends 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 | Method and Description |
---|---|
static PBES1Algorithm |
fromOid(String oid)
Gets the PBE algorithm for the given object identifier.
|
BufferedBlockCipherSpec |
getCipherSpec() |
DigestSpec |
getDigestSpec() |
String |
getOid() |
static PBES1Algorithm |
valueOf(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
public static PBES1Algorithm[] values()
for (PBES1Algorithm c : PBES1Algorithm.values()) System.out.println(c);
public static PBES1Algorithm 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 PBES1Algorithm fromOid(String oid)
oid
- PBE algorithm OID.IllegalArgumentException
- If no matching algorithm found.public String getOid()
public BufferedBlockCipherSpec getCipherSpec()
public DigestSpec getDigestSpec()
Copyright © 2003-2024 Virginia Tech. All Rights Reserved.