Top Description Fields Constructors Methods
org.bouncycastle.asn1.x9

public Class DHPublicKey

extends ASN1Object
Class Inheritance
Imports
java.math.BigInteger, org.bouncycastle.asn1.ASN1Integer, .ASN1Object, .ASN1Primitive, .ASN1TaggedObject

X9.42 definition of a DHPublicKey
    DHPublicKey ::= INTEGER

Field Summary

Modifier and TypeField and Description
private ASN1Integer
y

Constructor Summary

AccessConstructor and Description
private
public
DHPublicKey(BigInteger
the public value Y.
y
)

Base constructor.

Method Summary

Modifier and TypeMethod and Description
public static DHPublicKey

Returns:

a DHPublicKey
getInstance
(ASN1TaggedObject
a tagged object.
obj
,
boolean
true if the contents of the object is explictly tagged, false otherwise.
explicit
)

Return a DHPublicKey from the passed in tagged object.

public static DHPublicKey

Returns:

a DHPublicKey
getInstance
(Object
an object for conversion or a byte[].
obj
)

Return a DHPublicKey from the passed in object.

public BigInteger

Returns:

the Y value.
getY
()

Return the public value Y for the key.

public ASN1Primitive

Returns:

an ASN1Integer.
toASN1Primitive
()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Return an ASN.1 primitive representation of this object.

Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

yback to summary
private ASN1Integer y

Constructor Detail

DHPublicKeyback to summary
private DHPublicKey(ASN1Integer y)
DHPublicKeyback to summary
public DHPublicKey(BigInteger y)

Base constructor.

Parameters
y:BigInteger

the public value Y.

Method Detail

getInstanceback to summary
public static DHPublicKey getInstance(ASN1TaggedObject obj, boolean explicit)

Return a DHPublicKey from the passed in tagged object.

Parameters
obj:ASN1TaggedObject

a tagged object.

explicit:boolean

true if the contents of the object is explictly tagged, false otherwise.

Returns:DHPublicKey

a DHPublicKey

getInstanceback to summary
public static DHPublicKey getInstance(Object obj)

Return a DHPublicKey from the passed in object.

Parameters
obj:Object

an object for conversion or a byte[].

Returns:DHPublicKey

a DHPublicKey

getYback to summary
public BigInteger getY()

Return the public value Y for the key.

Returns:BigInteger

the Y value.

toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Return an ASN.1 primitive representation of this object.

Returns:ASN1Primitive

an ASN1Integer.