Class V1PuTTYSecretKeyDerivationFunction
java.lang.Object
net.schmizz.sshj.userauth.keyprovider.V1PuTTYSecretKeyDerivationFunction
- All Implemented Interfaces:
PuTTYSecretKeyDerivationFunction
PuTTY Key Derivation Function supporting Version 1 and 2 Key files with historical SHA-1 key derivation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionderiveSecretKey(char[] passphrase) Derive Secret Key from provided passphrase charactersprivate MessageDigest
-
Field Details
-
SECRET_KEY_ALGORITHM
- See Also:
-
DIGEST_ALGORITHM
- See Also:
-
-
Constructor Details
-
V1PuTTYSecretKeyDerivationFunction
V1PuTTYSecretKeyDerivationFunction()
-
-
Method Details
-
deriveSecretKey
Derive Secret Key from provided passphrase characters- Specified by:
deriveSecretKeyin interfacePuTTYSecretKeyDerivationFunction- Parameters:
passphrase- Passphrase characters required- Returns:
- Derived Secret Key
-
getMessageDigest
-