Class KeyPair
java.lang.Object
com.codename1.security.KeyPair
public final class KeyPair
extends java.lang.Object
A matched pair of PublicKey / PrivateKey. Typically produced by
invalid reference
KeyGenerator#generateRsaKeyPair(int)
-
Constructor Summary
ConstructorsConstructorDescriptionKeyPair(PublicKey publicKey, PrivateKey privateKey) Bundles an already-paired public/private key. -
Method Summary
Modifier and TypeMethodDescriptionReturns the private part of this pair.Returns the public part of this pair.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
KeyPair
Bundles an already-paired public/private key.
-
-
Method Details
-
getPublicKey
Returns the public part of this pair. -
getPrivateKey
Returns the private part of this pair.
-