Class DEREnumerated

    • Field Detail

      • bytes

        byte[] bytes
    • Constructor Detail

      • DEREnumerated

        public DEREnumerated​(int value)
      • DEREnumerated

        public DEREnumerated​(java.math.BigInteger value)
      • DEREnumerated

        public DEREnumerated​(byte[] bytes)
    • Method Detail

      • getInstance

        public static DEREnumerated getInstance​(java.lang.Object obj)
        return an integer from the passed in object
        Throws:
        java.lang.IllegalArgumentException - if the object cannot be converted.
      • getInstance

        public static DEREnumerated getInstance​(ASN1TaggedObject obj,
                                                boolean explicit)
        return an Enumerated 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.
        Throws:
        java.lang.IllegalArgumentException - if the tagged object cannot be converted.
      • getValue

        public java.math.BigInteger getValue()