public final class AsymmetricDHPublicKey extends AsymmetricDHKey implements AsymmetricPublicKey
algorithm, approvedModeOnly, domainParameters
Constructor and Description |
---|
AsymmetricDHPublicKey(Algorithm algorithm,
byte[] enc) |
AsymmetricDHPublicKey(Algorithm algorithm,
DHDomainParameters params,
java.math.BigInteger y) |
AsymmetricDHPublicKey(Algorithm algorithm,
SubjectPublicKeyInfo publicKeyInfo) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Return true if o is an equivalent key to this.
|
byte[] |
getEncoded()
Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.
|
java.math.BigInteger |
getY() |
int |
hashCode()
Return the hashCode for the key.
|
checkApprovedOnlyModeStatus, getAlgorithm, getDomainParameters, zeroize
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAlgorithm
public AsymmetricDHPublicKey(Algorithm algorithm, DHDomainParameters params, java.math.BigInteger y)
public AsymmetricDHPublicKey(Algorithm algorithm, byte[] enc)
public AsymmetricDHPublicKey(Algorithm algorithm, SubjectPublicKeyInfo publicKeyInfo)
public java.math.BigInteger getY()
public byte[] getEncoded()
AsymmetricKey
getEncoded
in interface AsymmetricKey
public boolean equals(java.lang.Object o)
Key