Class DERInteger

    • Field Detail

      • bytes

        byte[] bytes
    • Constructor Detail

      • DERInteger

        public DERInteger​(int value)
      • DERInteger

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

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

      • getInstance

        public static DERInteger 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 DERInteger getInstance​(ASN1TaggedObject obj,
                                             boolean explicit)
        return an Integer 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()
      • getPositiveValue

        public java.math.BigInteger getPositiveValue()
        in some cases positive values get crammed into a space, that's not quite big enough...
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object