public enum PublicKeyAlgorithmIdentifier extends java.lang.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 |
|---|---|
java.lang.String |
getId()
Gets the object identifier (OID) of the public key algorithm.
|
java.lang.String |
getName()
Gets the name of the public key algorithm.
|
static PublicKeyAlgorithmIdentifier |
valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getId()
public java.lang.String getName()
Copyright © 2010-2019 The Direct Project. All Rights Reserved.