Module jpms_dss_tsl_validation
Class ExtendedKeyUsageCondition
java.lang.Object
eu.europa.esig.dss.tsl.dto.condition.ExtendedKeyUsageCondition
- All Implemented Interfaces:
eu.europa.esig.dss.model.tsl.Condition,Serializable
public class ExtendedKeyUsageCondition
extends Object
implements eu.europa.esig.dss.model.tsl.Condition
ExtendedKeyUsage
Presence: This field is optional.
Description: It provides a non empty list of key purposes values to match with the correspondent KeyPurposes
present in the ExtendedKeyUsage certificate Extension. The assertion is verified if the
ExtendedKeyUsage Extension is present in the certificate and all key purposes provided are
present in the certificate ExtendedKeyUsage Extension.
Format: A non-empty sequence of KeyPurposes, whose semantic shall be as defined in X.509 [1] for the
ExtendedKeyUsage Extension. For the formal definition see ExtendedKeyUsage element in
the schema referenced by clause C.2 (point 3).
- See Also:
-
Constructor Details
-
ExtendedKeyUsageCondition
Default constructor- Parameters:
oids- a list of extended key usages to check
-
-
Method Details
-
getKeyPurposeIds
Returns the list key purpose IDs to be checked against the certificate’s extended key usage extension.- Returns:
- an unmodifiable list, possibly empty; never
null
-
check
public boolean check(eu.europa.esig.dss.model.x509.CertificateToken certificateToken) - Specified by:
checkin interfaceeu.europa.esig.dss.model.tsl.Condition
-
toString
- Specified by:
toStringin interfaceeu.europa.esig.dss.model.tsl.Condition
-
toString
-