Class KeyUsageCondition

    • Constructor Detail

      • KeyUsageCondition

        public KeyUsageCondition​(KeyUsageBit bit,
                                 boolean value)
        Constructs a new KeyUsageCondition.
        Parameters:
        bit - the key usage
        value - the required value of the key usage bit
      • KeyUsageCondition

        public KeyUsageCondition​(String usage,
                                 boolean value)
        Constructs a new KeyUsageCondition.
        Parameters:
        usage - the key usage
        value - the required value of the key usage bit
    • Method Detail

      • getBit

        public final KeyUsageBit getBit()
        Returns the key usage to be checked.
        Returns:
        never null
      • getValue

        public final boolean getValue()
        Returns the required bit value of the key usage to be checked.
        Returns:
        the required bit value of the key usage to be checked
      • 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