PR - type of getPrivateKey()PU - type of getPublicKey().public interface AsymmetricKeyPair<PR extends PrivateKey,PU extends PublicKey> extends KeySet
private key with its corresponding
public key for asymmetric encryption. The big advantage of asymmetric encryption is that no
secret has to be shared between the parties. The public key can be made public and shared. Anybody
knowing your public key can
encrypt
data for you that only you as the owner of the corresponding private key can
decrypt.
On the other hand only you as the owner of the private key can
sign arbitrary data in a way so
that everybody can verify
this signature using your public key.| Modifier and Type | Method and Description |
|---|---|
KeyPair |
getKeyPair() |
default Set<Key> |
getKeys() |
PR |
getPrivateKey() |
PU |
getPublicKey() |
PR getPrivateKey()
private key. Has to be kept secret.PU getPublicKey()
public key. May be distributed or published.Copyright © 2001–2019 mmm-Team. All rights reserved.