Class ASN1Boolean

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static ASN1Boolean getInstance(Object obj) Return a boolean from the passed in object.
      static ASN1Boolean getInstance(boolean value) Return an ASN1Boolean from the passed in boolean.
      static ASN1Boolean getInstance(int value) Return an ASN1Boolean from the passed in value.
      static ASN1Boolean getInstance(ASN1TaggedObject taggedObject, boolean explicit) Return a Boolean from a tagged object.
      boolean isTrue()
      int hashCode()
      String toString()
      • Methods inherited from class io.anyline.nfc.bouncycastle.asn1.ASN1Primitive

        encodeTo, encodeTo, equals, equals, equals, fromByteArray, toASN1Primitive
      • Methods inherited from class io.anyline.nfc.bouncycastle.asn1.ASN1Object

        equals, getEncoded, getEncoded
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getInstance

         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.

      • getInstance

         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

         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

         static ASN1Boolean getInstance(ASN1TaggedObject taggedObject, boolean explicit)

        Return a Boolean from a tagged object.

        Parameters:
        taggedObject - 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.