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