Package eu.europa.esig.dss.tsl
Class ExtendedKeyUsageCondition
- java.lang.Object
-
- eu.europa.esig.dss.spi.tsl.Condition
-
- eu.europa.esig.dss.tsl.ExtendedKeyUsageCondition
-
- All Implemented Interfaces:
Serializable
public class ExtendedKeyUsageCondition extends 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExtendedKeyUsageCondition(List<String> oids)
-
Method Summary
Modifier and Type Method Description booleancheck(CertificateToken certificateToken)Returns true if the condition is evaluated to true for the given certificate.List<String>getKeyPurposeIds()Returns the list key purpose IDs to be be checked against the certificate’s extended key usage extension.StringtoString()StringtoString(String indent)Returns a string representation of the condition
-
-
-
Method Detail
-
getKeyPurposeIds
public final List<String> getKeyPurposeIds()
Returns the list key purpose IDs to be be checked against the certificate’s extended key usage extension.- Returns:
- an unmodifiable list, possibly empty; never
null
-
check
public boolean check(CertificateToken certificateToken)
Description copied from class:ConditionReturns true if the condition is evaluated to true for the given certificate.
-
toString
public String toString(String indent)
Description copied from class:ConditionReturns a string representation of the condition
-
-