Class ASN1Boolean

    • Method Detail

      • getInstance

        public static ASN1Boolean getInstance​(Object obj)
        Return a boolean from the passed in object.
        Parameters:
        obj - an ASN1Boolean or an object that can be converted into one.
        Returns:
        an ASN1Boolean instance.
        Throws:
        IllegalArgumentException - if the object cannot be converted.
      • getInstance

        public static ASN1Boolean getInstance​(boolean value)
        Return an ASN1Boolean from the passed in boolean.
        Parameters:
        value - true or false depending on the ASN1Boolean wanted.
        Returns:
        an ASN1Boolean instance.
      • getInstance

        public static ASN1Boolean getInstance​(int value)
        Return an ASN1Boolean from the passed in value.
        Parameters:
        value - non-zero (true) or zero (false) depending on the ASN1Boolean wanted.
        Returns:
        an ASN1Boolean instance.
      • getInstance

        public static ASN1Boolean getInstance​(ASN1TaggedObject obj,
                                              boolean explicit)
        Return a Boolean from a tagged object.
        Parameters:
        obj - the tagged object holding the object we want
        explicit - true if the object is meant to be explicitly tagged false otherwise.
        Returns:
        an ASN1Boolean instance.
        Throws:
        IllegalArgumentException - if the tagged object cannot be converted.
      • isTrue

        public boolean isTrue()