Class AsymmetricXDHPublicKey
java.lang.Object
org.bouncycastle.crypto.asymmetric.AsymmetricXDHKey
org.bouncycastle.crypto.asymmetric.AsymmetricXDHPublicKey
- All Implemented Interfaces:
AsymmetricKey, AsymmetricPublicKey, Key
Edwards Curve Diffie-Hellman (XDH) public keys.
-
Constructor Summary
ConstructorsConstructorDescriptionAsymmetricXDHPublicKey(byte[] encoding) Construct a key from an encoding of a SubjectPublicKeyInfo.AsymmetricXDHPublicKey(Algorithm algorithm, byte[] keyData) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if o is an equivalent key to this.byte[]Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.byte[]inthashCode()Return the hashCode for the key.Methods inherited from class AsymmetricXDHKey
checkApprovedOnlyModeStatus, getAlgorithm, isThreadCorrectMode, zeroizeMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Key
getAlgorithm
-
Constructor Details
-
AsymmetricXDHPublicKey
-
AsymmetricXDHPublicKey
public AsymmetricXDHPublicKey(byte[] encoding) Construct a key from an encoding of a SubjectPublicKeyInfo.- Parameters:
encoding- the DER encoding of the key.
-
-
Method Details
-
getPublicData
public byte[] getPublicData() -
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
-