public enum EncryptionAlgorithm extends Enum<EncryptionAlgorithm>
| Enum Constant and Description |
|---|
RSA
RSA asymmetric key encryption algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
static EncryptionAlgorithm |
fromAsn1Id(String asn1)
Factory method: returns the Encryption object corresponding to the given
ASN.1 algorithm code (e.g.
|
static EncryptionAlgorithm |
fromBouncyCastleCode(String bcCode)
Factory method: returns the Encryption object corresponding to the given
BouncyCastle algorithm code (e.g.
|
static EncryptionAlgorithm |
fromDescription(String description)
Factory method: returns the Encryption object corresponding to the given
text description.
|
String |
getAsn1Id()
Returns the numeric (in text form) id of the encryption algorithm.
|
String |
getBouncyCastleCode()
returns the BouncyCastle code for the given encryption algorithm.
|
String |
getDescription()
Returns the text description of the encryption algorithm.
|
String |
toString()
Formats the object as a string.
|
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 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 fromDescription(String description)
description - the algorithm description, e.g. "rsa".public static EncryptionAlgorithm fromAsn1Id(String asn1)
bcCode - the ASN.1 algorithm BouncyCastle code, e.g. "1.3.13.2.26".public static EncryptionAlgorithm fromBouncyCastleCode(String bcCode)
bcCode - the algorithm BouncyCastle code, e.g. "RSA".public String getDescription()
public String getBouncyCastleCode()
public String getAsn1Id()
public String toString()
toString in class Enum<EncryptionAlgorithm>Copyright © 2012-2014 Andrea Funtò. See here for terms and conditions.