KeyPairpublic final class KeyPair extends Object implements Serializable{@code KeyPair} is a container for a public key and a private key. Since the
private key can be accessed, instances must be treated like a private key. |
Fields Summary |
---|
private static final long | serialVersionUID | private final PrivateKey | privateKey | private final PublicKey | publicKey |
Constructors Summary |
---|
public KeyPair(PublicKey publicKey, PrivateKey privateKey)Constructs a new instance of {@code KeyPair} with a public key and the
corresponding private key.
this.privateKey = privateKey;
this.publicKey = publicKey;
|
|