PR - type of private key.PU - type of public key.public abstract class AbstractAsymmetricKeyPair<PR extends PrivateKey,PU extends PublicKey> extends Object implements AsymmetricKeyPair<PR,PU>
AsymmetricKeyPair.| Modifier and Type | Field and Description |
|---|---|
private KeyPair |
keyPair |
protected PR |
privateKey |
protected PU |
publicKey |
| Constructor and Description |
|---|
AbstractAsymmetricKeyPair(KeyPair keyPair)
The constructor.
|
AbstractAsymmetricKeyPair(PR privateKey,
PU publicKey)
The constructor.
|
AbstractAsymmetricKeyPair(PR privateKey,
PU publicKey,
KeyPair keyPair)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
KeyPair |
getKeyPair() |
PR |
getPrivateKey() |
PU |
getPublicKey() |
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetKeysprotected final PR extends PrivateKey privateKey
getPrivateKey()protected final PU extends PublicKey publicKey
getPublicKey()private final KeyPair keyPair
public AbstractAsymmetricKeyPair(PR privateKey, PU publicKey)
privateKey - the private key.publicKey - the public key.public AbstractAsymmetricKeyPair(KeyPair keyPair)
keyPair - the key pair.public AbstractAsymmetricKeyPair(PR privateKey, PU publicKey, KeyPair keyPair)
privateKey - the private key.publicKey - the public key.keyPair - the key pair.public PR getPrivateKey()
getPrivateKey in interface AsymmetricKeyPair<PR extends PrivateKey,PU extends PublicKey>private key. Has to be kept secret.public PU getPublicKey()
getPublicKey in interface AsymmetricKeyPair<PR extends PrivateKey,PU extends PublicKey>public key. May be distributed or published.public KeyPair getKeyPair()
getKeyPair in interface AsymmetricKeyPair<PR extends PrivateKey,PU extends PublicKey>KeyPair.Copyright © 2001–2019 mmm-Team. All rights reserved.