Class AsymmetricDHPublicKey
java.lang.Object
org.bouncycastle.crypto.asymmetric.AsymmetricDHKey
org.bouncycastle.crypto.asymmetric.AsymmetricDHPublicKey
- All Implemented Interfaces:
AsymmetricKey, AsymmetricPublicKey, Key
Class for Diffie-Hellman public keys.
-
Constructor Summary
ConstructorsConstructorDescriptionAsymmetricDHPublicKey(Algorithm algorithm, byte[] enc) AsymmetricDHPublicKey(Algorithm algorithm, SubjectPublicKeyInfo publicKeyInfo) AsymmetricDHPublicKey(Algorithm algorithm, DHDomainParameters params, BigInteger y) -
Method Summary
Methods inherited from class AsymmetricDHKey
checkApprovedOnlyModeStatus, getAlgorithm, getDomainParameters, isThreadCorrectMode, zeroizeMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Key
getAlgorithm
-
Constructor Details
-
AsymmetricDHPublicKey
-
AsymmetricDHPublicKey
-
AsymmetricDHPublicKey
-
-
Method Details
-
getY
-
getEncoded
public byte[] getEncoded()Description copied from interface:AsymmetricKeyReturn an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.- Specified by:
getEncodedin interfaceAsymmetricKey- Returns:
- an encoding of a PrivateKeyInfo or a SubjectPublicKeyInfo structure.
-
equals
-
hashCode
-