Class CertSubjectDNAttributeCondition

  • All Implemented Interfaces:
    Serializable

    public class CertSubjectDNAttributeCondition
    extends Condition
    CertSubjectDNAttribute Presence: This field is optional. Description: It provides a non empty set of OIDs. Each OID maps to a possible attribute in the Subject DN of the certificate. The criteria is matched if all OID refers to an attribute present in the DN. Format: A non-empty sequence of OIDs representing Directory attributes, whose meaning respect the description above. For the formal definition see CertSubjectDNAttribute element in the schema referenced by clause C.2 (point 3).
    See Also:
    Serialized Form
    • Constructor Detail

      • CertSubjectDNAttributeCondition

        public CertSubjectDNAttributeCondition​(List<String> oids)
    • Method Detail

      • getAttributeOids

        public final List<String> getAttributeOids()
        Returns the list of DN attribute OIDs to be checked against the certificate’s subject DN.
        Returns:
        an unmodifiable list, possibly empty; never null
      • check

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

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