PublicKey
, PrivateKey
Modifier and Type | Field and Description |
---|---|
private final PrivateKey | privateKey
The private key. |
private final PublicKey | publicKey
The public key. |
private static final long |
Access | Constructor and Description |
---|---|
public | KeyPair(PublicKey
the public key. publicKey, PrivateKey the private key. privateKey)Constructs a key pair from the given public key and private key. |
Modifier and Type | Method and Description |
---|---|
public PrivateKey | Returns: a reference to the private key.Returns a reference to the private key component of this key pair. |
public PublicKey | Returns: a reference to the public key.Returns a reference to the public key component of this key pair. |
privateKey | back to summary |
---|---|
private final PrivateKey privateKey The private key. |
publicKey | back to summary |
---|---|
private final PublicKey publicKey The public key. |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID
|
KeyPair | back to summary |
---|---|
public KeyPair(PublicKey publicKey, PrivateKey privateKey) Constructs a key pair from the given public key and private key. Note that this constructor only stores references to the public
and private key components in the generated key pair. This is safe,
because
|
getPrivate | back to summary |
---|---|
public PrivateKey getPrivate() Returns a reference to the private key component of this key pair.
|
getPublic | back to summary |
---|---|
public PublicKey getPublic() Returns a reference to the public key component of this key pair.
|