Class QCStatementCondition

java.lang.Object
eu.europa.esig.dss.tsl.dto.condition.QCStatementCondition
All Implemented Interfaces:
Condition, Serializable

public class QCStatementCondition extends Object implements Condition
This class contains an information extracted for a certificate equivalence condition
See Also:
  • Constructor Details

    • QCStatementCondition

      public QCStatementCondition(String oid, String type, String legislation)
      Default constructor
      Parameters:
      oid - String QcStatement OID, when present
      type - String QcType OID, when present
      legislation - String QcCClegislation code, when present
  • Method Details

    • getOid

      public String getOid()
      Gets the QcStatement OID
      Returns:
      String
    • getType

      public String getType()
      Gets the QcType OID
      Returns:
      String
    • getLegislation

      public String getLegislation()
      Gets the QcCClegislation code
      Returns:
      String
    • check

      public boolean check(CertificateToken certificateToken)
      Description copied from interface: Condition
      Returns true if the condition is evaluated to true for the given certificate.
      Specified by:
      check in interface Condition
      Parameters:
      certificateToken - CertificateToken to be checked
      Returns:
      true if the condition is filled
    • toString

      public String toString(String indent)
      Description copied from interface: Condition
      Returns a string representation of the condition
      Specified by:
      toString in interface Condition
      Parameters:
      indent - the indentation to be used
      Returns:
      a human readable condition
    • toString

      public String toString()
      Overrides:
      toString in class Object