ASN1Encodable
, Encodable
public class DHPublicKey extends ASN1Object
DHPublicKey ::= INTEGER
Constructor | Description |
---|---|
DHPublicKey(java.math.BigInteger y) |
Base constructor.
|
Modifier and Type | Method | Description |
---|---|---|
static DHPublicKey |
getInstance(java.lang.Object obj) |
Return a DHPublicKey from the passed in object.
|
static DHPublicKey |
getInstance(ASN1TaggedObject obj,
boolean explicit) |
Return a DHPublicKey from the passed in tagged object.
|
java.math.BigInteger |
getY() |
Return the public value Y for the key.
|
ASN1Primitive |
toASN1Primitive() |
Return an ASN.1 primitive representation of this object.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
public DHPublicKey(java.math.BigInteger y)
y
- the public value Y.public static DHPublicKey getInstance(ASN1TaggedObject obj, boolean explicit)
obj
- a tagged object.explicit
- true if the contents of the object is explictly tagged, false otherwise.public static DHPublicKey getInstance(java.lang.Object obj)
obj
- an object for conversion or a byte[].public java.math.BigInteger getY()
public ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object