Class PolicyIdCondition
java.lang.Object
eu.europa.esig.dss.tsl.dto.condition.PolicyIdCondition
- All Implemented Interfaces:
Condition
,Serializable
Checks if a certificate has a specific policy OID.
Objects based on this class are instantiated from trusted list or by SignedDocumentValidator for QCP and QCPPlus
Objects based on this class are instantiated from trusted list or by SignedDocumentValidator for QCP and QCPPlus
- See Also:
-
Constructor Summary
ConstructorDescriptionPolicyIdCondition
(String policyId) The default constructor for PolicyIdCondition. -
Method Summary
Modifier and TypeMethodDescriptionboolean
check
(CertificateToken certificateToken) Returns true if the condition is evaluated to true for the given certificate.final String
Returns the policy OID.toString()
Returns a string representation of the condition
-
Constructor Details
-
PolicyIdCondition
The default constructor for PolicyIdCondition.- Parameters:
policyId
- the policy oid to check
-
-
Method Details
-
getPolicyOid
-
check
Description copied from interface:Condition
Returns true if the condition is evaluated to true for the given certificate. -
toString
-
toString
-