Package com.sshtools.j2ssh.openssh
Class PEMReader
java.lang.Object
com.sshtools.j2ssh.openssh.PEM
com.sshtools.j2ssh.openssh.PEMReader
- Version:
- $Revision: 1.13 $
- Author:
- $author$
-
Field Summary
Fields inherited from class com.sshtools.j2ssh.openssh.PEM
DSA_PRIVATE_KEY, HEX_CHARS, MAX_LINE_LENGTH, PEM_BEGIN, PEM_BOUNDARY, PEM_END, RSA_PRIVATE_KEY
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.sshtools.j2ssh.openssh.PEM
getKeyFromPassphrase
-
Constructor Details
-
PEMReader
Creates a new PEMReader object.- Parameters:
r
-- Throws:
IOException
-
-
Method Details
-
getHeader
- Returns:
-
getPayload
public byte[] getPayload()- Returns:
-
getType
- Returns:
-
decryptPayload
- Parameters:
passphrase
-- Returns:
- Throws:
GeneralSecurityException
NoSuchAlgorithmException
-