public enum PublicKeyAlgorithmIdentifier extends Enum<PublicKeyAlgorithmIdentifier>
| Enum Constant and Description |
|---|
DSA
DSA encryption
OID: 1.2.840.10040.4.1 |
RSA
RSA encryption
OID: 1.2.840.113549.1.1.1 |
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
Gets the object identifier (OID) of the public key algorithm.
|
String |
getName()
Gets the name of the public key algorithm.
|
static PublicKeyAlgorithmIdentifier |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PublicKeyAlgorithmIdentifier[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PublicKeyAlgorithmIdentifier RSA
public static final PublicKeyAlgorithmIdentifier DSA
public static PublicKeyAlgorithmIdentifier[] values()
for (PublicKeyAlgorithmIdentifier c : PublicKeyAlgorithmIdentifier.values()) System.out.println(c);
public static PublicKeyAlgorithmIdentifier 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 String getId()
public String getName()
Copyright © 2010–2020 The Direct Project. All rights reserved.