Package org.ek9lang.core
Class SigningKeyPair
java.lang.Object
org.ek9lang.core.SigningKeyPair
Just a wrapper around java public private key processing.
Can hold either public key and private key, just one or none.
-
Constructor Summary
ConstructorDescriptionSigningKeyPair
(String privateBase64, String publicBase64) Create a signing key pair from the private and public parts of a PKI key pair. -
Method Summary
Modifier and TypeMethodDescriptiondecryptWithPrivateKey
(String data) decryptWithPublicKey
(String data) encryptWithPrivateKey
(String data) encryptWithPublicKey
(String data) static SigningKeyPair
generate
(int keySize) Create a new signing key pair of a particular key size.Access the private key of the signing key pair.Access the public key of the signing key pair.boolean
boolean
isPublic()
static SigningKeyPair
static SigningKeyPair
static SigningKeyPair
static SigningKeyPair
static SigningKeyPair
-
Constructor Details
-
SigningKeyPair
Create a signing key pair from the private and public parts of a PKI key pair.
-
-
Method Details
-
generate
Create a new signing key pair of a particular key size. -
of
-
ofPublic
-
ofPublic
-
ofPrivate
-
ofPrivate
-
isPublic
public boolean isPublic() -
isPrivate
public boolean isPrivate() -
encryptWithPublicKey
-
encryptWithPrivateKey
-
decryptWithPublicKey
-
decryptWithPrivateKey
-
getPrivateKeyInBase64
Access the private key of the signing key pair. -
getPublicKeyInBase64
Access the public key of the signing key pair.
-