Class PolicyIdCondition
java.lang.Object
eu.europa.esig.dss.tsl.dto.condition.PolicyIdCondition
- All Implemented Interfaces:
Condition
,Serializable
public class PolicyIdCondition extends Object implements Condition
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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description PolicyIdCondition(String policyId)
The default constructor for PolicyIdCondition. -
Method Summary
Modifier and Type Method Description boolean
check(CertificateToken certificateToken)
Returns true if the condition is evaluated to true for the given certificate.String
getPolicyOid()
Returns the policy OID.String
toString()
String
toString(String indent)
Returns a string representation of the condition
-
Constructor Details
-
PolicyIdCondition
The default constructor for PolicyIdCondition.- Parameters:
policyId
- the policy oid to check
-
-
Method Details