Class Ed25519KeyFactory
java.lang.Object
net.schmizz.sshj.common.Ed25519KeyFactory
Factory for generating Edwards-curve 25519 Public and Private Keys
-
Method Summary
Modifier and TypeMethodDescriptionstatic PrivateKeygetPrivateKey(byte[] privateKeyBinary) Get Edwards-curve Private Key for private key binarystatic PublicKeygetPublicKey(byte[] publicKeyBinary) Get Edwards-curve Public Key for public key binary
-
Method Details
-
getPrivateKey
Get Edwards-curve Private Key for private key binary- Parameters:
privateKeyBinary- Private Key byte array consisting of 32 bytes- Returns:
- Edwards-curve 25519 Private Key
- Throws:
GeneralSecurityException- Thrown on failure to generate Private Key
-
getPublicKey
Get Edwards-curve Public Key for public key binary- Parameters:
publicKeyBinary- Public Key byte array consisting of 32 bytes- Returns:
- Edwards-curve 25519 Public Key
- Throws:
GeneralSecurityException- Thrown on failure to generate Public Key
-