Package eu.europa.esig.dss.enumerations
Enum CertificateQualification
- java.lang.Object
-
- java.lang.Enum<CertificateQualification>
-
- eu.europa.esig.dss.enumerations.CertificateQualification
-
- All Implemented Interfaces:
Serializable,Comparable<CertificateQualification>
public enum CertificateQualification extends Enum<CertificateQualification>
Available certificate qualification types
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CERT_FOR_ESEALCertificate for Electronic SealsCERT_FOR_ESIGCertificate for Electronic SignaturesCERT_FOR_UNKNOWNCertificate for unidentified typeCERT_FOR_WSACertificate for Web Site AuthenticationsNANot ApplicableQCERT_FOR_ESEALQualified Certificate for Electronic SealsQCERT_FOR_ESEAL_QSCDQualified Certificate for Electronic Seals with private key on QSCDQCERT_FOR_ESIGQualified Certificate for Electronic SignaturesQCERT_FOR_ESIG_QSCDQualified Certificate for Electronic Signatures with private key on QSCDQCERT_FOR_UNKNOWNQualified Certificate for unidentified typeQCERT_FOR_UNKNOWN_QSCDQualified Certificate for unidentified type with private key in a QSCDQCERT_FOR_WSAQualified Certificate for Web Site Authentications
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CertificateQualificationforName(String value)CertificateQualification can be nullstatic CertificateQualificationfromReadable(String readable)CertificateQualification can be nullStringgetLabel()Returns a complete name of the qualification typeStringgetReadable()Returns a short string defining the qualification typeCertificateTypegetType()Returns the type of an electronic signature the certificate can be used forbooleanisForEseal()Returns if the certificate can be used for an electronic sealbooleanisForEsig()Returns if the certificate can be used for an electronic signaturebooleanisQc()Returns if the certificate is qualifiedbooleanisQscd()Returns if the certificate is used on a Qualified Signature Creation Devicestatic CertificateQualificationvalueOf(String name)Returns the enum constant of this type with the specified name.static CertificateQualification[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
QCERT_FOR_ESIG_QSCD
public static final CertificateQualification QCERT_FOR_ESIG_QSCD
Qualified Certificate for Electronic Signatures with private key on QSCD
-
QCERT_FOR_ESEAL_QSCD
public static final CertificateQualification QCERT_FOR_ESEAL_QSCD
Qualified Certificate for Electronic Seals with private key on QSCD
-
QCERT_FOR_UNKNOWN_QSCD
public static final CertificateQualification QCERT_FOR_UNKNOWN_QSCD
Qualified Certificate for unidentified type with private key in a QSCD
-
QCERT_FOR_ESIG
public static final CertificateQualification QCERT_FOR_ESIG
Qualified Certificate for Electronic Signatures
-
QCERT_FOR_ESEAL
public static final CertificateQualification QCERT_FOR_ESEAL
Qualified Certificate for Electronic Seals
-
QCERT_FOR_WSA
public static final CertificateQualification QCERT_FOR_WSA
Qualified Certificate for Web Site Authentications
-
QCERT_FOR_UNKNOWN
public static final CertificateQualification QCERT_FOR_UNKNOWN
Qualified Certificate for unidentified type
-
CERT_FOR_ESIG
public static final CertificateQualification CERT_FOR_ESIG
Certificate for Electronic Signatures
-
CERT_FOR_ESEAL
public static final CertificateQualification CERT_FOR_ESEAL
Certificate for Electronic Seals
-
CERT_FOR_WSA
public static final CertificateQualification CERT_FOR_WSA
Certificate for Web Site Authentications
-
CERT_FOR_UNKNOWN
public static final CertificateQualification CERT_FOR_UNKNOWN
Certificate for unidentified type
-
NA
public static final CertificateQualification NA
Not Applicable
-
-
Method Detail
-
values
public static CertificateQualification[] 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 (CertificateQualification c : CertificateQualification.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CertificateQualification 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
-
getReadable
public String getReadable()
Returns a short string defining the qualification type- Returns:
String
-
forName
public static CertificateQualification forName(String value)
CertificateQualification can be null- Parameters:
value- the qualification name to be converted to the enum- Returns:
- the linked CertificateQualification or null
-
fromReadable
public static CertificateQualification fromReadable(String readable)
CertificateQualification can be null- Parameters:
readable- the readable description of the qualification to be converted to the enum- Returns:
- the linked CertificateQualification or null
-
isQc
public boolean isQc()
Returns if the certificate is qualified- Returns:
- TRUE if it is a qualified certificate, FALSE otherwise
-
getType
public CertificateType getType()
Returns the type of an electronic signature the certificate can be used for- Returns:
CertificateType
-
isForEsig
public boolean isForEsig()
Returns if the certificate can be used for an electronic signature- Returns:
- TRUE if it is an eSig certificate, FALSE otherwise
-
isForEseal
public boolean isForEseal()
Returns if the certificate can be used for an electronic seal- Returns:
- TRUE if it is an eSeal certificate, FALSE otherwise
-
isQscd
public boolean isQscd()
Returns if the certificate is used on a Qualified Signature Creation Device- Returns:
- TRUE if the certificate os QSCD, FALSE otherwise
-
-