Package se.idsec.utils.printcert.algo
Enum PublicKeyType
- java.lang.Object
-
- java.lang.Enum<PublicKeyType>
-
- se.idsec.utils.printcert.algo.PublicKeyType
-
- All Implemented Interfaces:
Serializable,Comparable<PublicKeyType>
public enum PublicKeyType extends Enum<PublicKeyType>
- Author:
- stefan
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PublicKeyTypegetKeyType(String oid)static PublicKeyTypegetKeyType(ASN1ObjectIdentifier oid)StringgetName()StringgetOid()static PublicKeyTypevalueOf(String name)Returns the enum constant of this type with the specified name.static PublicKeyType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
rsa
public static final PublicKeyType rsa
-
rsassa_pss
public static final PublicKeyType rsassa_pss
-
ecdsa
public static final PublicKeyType ecdsa
-
dsa
public static final PublicKeyType dsa
-
dh
public static final PublicKeyType dh
-
unknown
public static final PublicKeyType unknown
-
-
Method Detail
-
values
public static PublicKeyType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PublicKeyType c : PublicKeyType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PublicKeyType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getName
public String getName()
-
getOid
public String getOid()
-
getKeyType
public static PublicKeyType getKeyType(ASN1ObjectIdentifier oid)
-
getKeyType
public static PublicKeyType getKeyType(String oid)
-
-