Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public final class KeyPair
- Object
- KeyPair
Constructors
public KeyPair(PublicKey publicKey, PrivateKey privateKey) | Bundles an already-paired public/private key. |
Methods
public PublicKey getPublicKey() | Returns the public part of this pair. |
public PrivateKey getPrivateKey() | Returns the private part of this pair. |
Inherited methods
Constructor details
KeyPair
public KeyPair(PublicKey publicKey, PrivateKey privateKey)Bundles an already-paired public/private key.
Method details
getPublicKey
public PublicKey getPublicKey()Returns the public part of this pair.
getPrivateKey
public PrivateKey getPrivateKey()Returns the private part of this pair.