| java.lang.Object | |
| ↳ | java.security.KeyPair |
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.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new instance of
KeyPair with a public key and the
corresponding private key.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the private key.
| |||||||||||
Returns the public key.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Constructs a new instance of KeyPair with a public key and the
corresponding private key.
| publicKey | the public key. |
|---|---|
| privateKey | the private key. |
Returns the private key.