@ApplicationScoped public class DHKeyExchangeManager extends Object
| Constructor and Description |
|---|
DHKeyExchangeManager() |
| Modifier and Type | Method and Description |
|---|---|
BobPublicData |
acknowledgeExchange(AlicePublicData publicData)
Bob receives the public key from Alice and return his public key.
|
SecretKey |
defineSecretKey(be.atbash.ee.security.octopus.keys.AtbashKey publicKey)
Creates the shared SecretKey based on the public Key from the other party using the Private Key
from ourself.
|
SecretKey |
defineSecretKey(String exchangeId) |
static DHKeyExchangeManager |
getInstance() |
String |
getTenantId(String exchangeId) |
void |
init() |
void |
removeKeys(String tenantId,
String exchangeId) |
AlicePublicData |
startExchange(String tenantId)
Generates an exchangeId and DH key pair.
|
@PostConstruct public void init()
public AlicePublicData startExchange(String tenantId)
public BobPublicData acknowledgeExchange(AlicePublicData publicData)
publicData - Public Key data info from Alicepublic SecretKey defineSecretKey(be.atbash.ee.security.octopus.keys.AtbashKey publicKey)
publicKey - Public key from other partypublic static DHKeyExchangeManager getInstance()
Copyright © 2018–2019. All rights reserved.