public enum EncryptionAlgorithm extends Enum<EncryptionAlgorithm>
| Modifier and Type | Method and Description |
|---|---|
static EncryptionAlgorithm |
forName(String name)
Returns the encryption algorithm associated to the given JCE name.
|
static EncryptionAlgorithm |
forName(String name,
EncryptionAlgorithm defaultValue)
Returns the encryption algorithm associated to the given JCE name.
|
static EncryptionAlgorithm |
forOID(String oid)
Returns the encryption algorithm associated to the given OID.
|
String |
getName()
Get the algorithm name
|
String |
getOid()
Get the ASN1 algorithm OID
|
String |
getPadding()
Get the algorithm padding
|
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
public static final EncryptionAlgorithm DSA
public static final EncryptionAlgorithm ECDSA
public static final EncryptionAlgorithm HMAC
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 forOID(String oid) throws DSSException
oid - the ASN1 algorithm OIDDSSException - if the oid doesn't match any algorithmpublic static EncryptionAlgorithm forName(String name) throws DSSException
name - the encryption algorithm nameDSSException - if the name doesn't match any algorithmpublic static EncryptionAlgorithm forName(String name, EncryptionAlgorithm defaultValue)
name - the encryption algorithm namedefaultValue - The default value for the EncryptionAlgorithmEncryptionAlgorithm or the default valuepublic String getName()
public String getOid()
public String getPadding()
Copyright © 2018. All rights reserved.