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
ConstructorsConstructorDescriptionSigningKeyPair(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 SigningKeyPairgenerate(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.booleanbooleanisPublic()static SigningKeyPairstatic SigningKeyPairstatic SigningKeyPairstatic SigningKeyPairstatic SigningKeyPair
-
Constructor Details
-
SigningKeyPair
-
-
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.
-