Package org.ondc
Class KeyUtil
java.lang.Object
org.ondc.KeyUtil
Utility Class to Generate Keypairs and Shared Key.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
POJO class for storing private and public keys. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyUtil.DHKeyPair
Generate a Keypair.static String
generateSharedKey
(String privateKeyStr, String publicKeyStr) Generates a SharedKey.
-
Field Details
-
KEYPAIR_GENERATION_ALGORITHM
The Algorithm used to generate Key pairs. ("X25519").- See Also:
-
-
Method Details
-
generateKeyPair
Generate a Keypair.- Returns:
- Generated Keypair.
-