public class ExchangePair
extends java.lang.Object
Constructor and Description |
---|
ExchangePair(AsymmetricKeyParameter publicKey,
byte[] shared)
Base constructor.
|
Modifier and Type | Method and Description |
---|---|
AsymmetricKeyParameter |
getPublicKey()
Return the responding party's public key.
|
byte[] |
getSharedValue()
Return the shared value calculated with public key.
|
public ExchangePair(AsymmetricKeyParameter publicKey, byte[] shared)
publicKey
- The responding party's public key.shared
- the calculated shared value.public AsymmetricKeyParameter getPublicKey()
public byte[] getSharedValue()