public enum EncryptionAlgorithm extends Enum<EncryptionAlgorithm>
| Enum Constant and Description |
|---|
AES128 |
AES128_CBC |
AES192 |
AES192_CBC |
AES256 |
AES256_CBC |
DES_EDE3_CBC |
DSA |
ECDSA |
RSA |
RSA_3DES |
RSAandMGF1 |
| Modifier and Type | Method and Description |
|---|---|
static EncryptionAlgorithm |
fromOID(String OID,
EncryptionAlgorithm defaultAlgorithm)
Gets the encryption algorithm from an OID.
|
static EncryptionAlgorithm |
fromString(String algorithmName,
EncryptionAlgorithm defaultAlgorithm)
Gets the encryption algorithm from an algorithm name
|
String |
getAlgName()
Gets the name of the encryption algorithm.
|
String |
getOID()
Gets the OID of the encryption algorithm.
|
static EncryptionAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EncryptionAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EncryptionAlgorithm RSA_3DES
public static final EncryptionAlgorithm AES128
public static final EncryptionAlgorithm AES192
public static final EncryptionAlgorithm AES256
public static final EncryptionAlgorithm DSA
public static final EncryptionAlgorithm RSA
public static final EncryptionAlgorithm RSAandMGF1
public static final EncryptionAlgorithm ECDSA
public static final EncryptionAlgorithm DES_EDE3_CBC
public static final EncryptionAlgorithm AES128_CBC
public static final EncryptionAlgorithm AES192_CBC
public static final EncryptionAlgorithm AES256_CBC
public static EncryptionAlgorithm[] values()
for (EncryptionAlgorithm c : EncryptionAlgorithm.values()) System.out.println(c);
public static EncryptionAlgorithm 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 EncryptionAlgorithm fromString(String algorithmName, EncryptionAlgorithm defaultAlgorithm)
algorithmNam - The encryption algorithm namedefaultAlgorithm - The default algorithm to return is a corresponding name cannot be foundpublic static EncryptionAlgorithm fromOID(String OID, EncryptionAlgorithm defaultAlgorithm)
OID - The OID of the encryption algorithmdefaultAlgorithm - The default algorithm to return is a corresponding OID cannot be foundpublic String getOID()
public String getAlgName()
Copyright © 2010-2016 NHIN Direct. All Rights Reserved.