Class AbstractKeyExchange
- java.lang.Object
-
- org.activecomponents.udp.asymciphers.AbstractKeyExchange
-
- All Implemented Interfaces:
IKeyExchange
- Direct Known Subclasses:
DHExchange
,ECDHExchange
public abstract class AbstractKeyExchange extends java.lang.Object implements IKeyExchange
-
-
Constructor Summary
Constructors Constructor Description AbstractKeyExchange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
generateSymKey(byte[] remotekey)
Generates the shared symmetric key given the remote public key.byte[]
getPublicKey()
Returns the generated public key.
-
-
-
Method Detail
-
generateSymKey
public byte[] generateSymKey(byte[] remotekey)
Generates the shared symmetric key given the remote public key.- Specified by:
generateSymKey
in interfaceIKeyExchange
- Parameters:
remotekey
- The remote public key.- Returns:
- Shared symmetric key;
-
getPublicKey
public byte[] getPublicKey()
Returns the generated public key.- Specified by:
getPublicKey
in interfaceIKeyExchange
- Returns:
- Generated public key.
-
-