Package eu.europa.esig.dss.enumerations
Enum CertificateType
- java.lang.Object
-
- java.lang.Enum<CertificateType>
-
- eu.europa.esig.dss.enumerations.CertificateType
-
- All Implemented Interfaces:
Serializable,Comparable<CertificateType>
public enum CertificateType extends Enum<CertificateType>
Contains a list of possible certificate types
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLabel()Gets the user-friendly labelstatic CertificateTypevalueOf(String name)Returns the enum constant of this type with the specified name.static CertificateType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ESIGN
public static final CertificateType ESIGN
For electronic signature
-
ESEAL
public static final CertificateType ESEAL
For electronic seal
-
WSA
public static final CertificateType WSA
For Web authentication
-
UNKNOWN
public static final CertificateType UNKNOWN
Unknown
-
-
Method Detail
-
values
public static CertificateType[] 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 (CertificateType c : CertificateType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CertificateType 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
-
-