Package com.sshtools.j2ssh.openssh
Class PEM
java.lang.Object
com.sshtools.j2ssh.openssh.PEM
- Version:
- $Revision: 1.13 $
- Author:
- $author$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static SecretKey
getKeyFromPassphrase
(String passphrase, byte[] iv, int keySize)
-
Field Details
-
DSA_PRIVATE_KEY
- See Also:
-
RSA_PRIVATE_KEY
- See Also:
-
PEM_BOUNDARY
- See Also:
-
PEM_BEGIN
- See Also:
-
PEM_END
- See Also:
-
MAX_LINE_LENGTH
protected static final int MAX_LINE_LENGTH- See Also:
-
HEX_CHARS
protected static final char[] HEX_CHARS
-
-
Constructor Details
-
PEM
public PEM()
-
-
Method Details
-
getKeyFromPassphrase
protected static SecretKey getKeyFromPassphrase(String passphrase, byte[] iv, int keySize) throws NoSuchAlgorithmException, InvalidKeySpecException - Parameters:
passphrase
-iv
-keySize
-- Returns:
- Throws:
NoSuchAlgorithmException
InvalidKeySpecException
Error
-