Class DHPublicKey

    • Constructor Detail

      • DHPublicKey

        public DHPublicKey​(java.math.BigInteger y)
        Base constructor.
        Parameters:
        y - the public value Y.
    • Method Detail

      • getInstance

        public static DHPublicKey getInstance​(ASN1TaggedObject obj,
                                              boolean explicit)
        Return a DHPublicKey from the passed in tagged object.
        Parameters:
        obj - a tagged object.
        explicit - true if the contents of the object is explictly tagged, false otherwise.
        Returns:
        a DHPublicKey
      • getInstance

        public static DHPublicKey getInstance​(java.lang.Object obj)
        Return a DHPublicKey from the passed in object.
        Parameters:
        obj - an object for conversion or a byte[].
        Returns:
        a DHPublicKey
      • getY

        public java.math.BigInteger getY()
        Return the public value Y for the key.
        Returns:
        the Y value.