Package com.sshtools.j2ssh.openssh
Class PEMReader
- java.lang.Object
-
- com.sshtools.j2ssh.openssh.PEM
-
- com.sshtools.j2ssh.openssh.PEMReader
-
public class PEMReader extends PEM
- 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 Constructor Description PEMReader(java.io.Reader r)
Creates a new PEMReader object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
decryptPayload(java.lang.String passphrase)
java.util.Map
getHeader()
byte[]
getPayload()
java.lang.String
getType()
-
Methods inherited from class com.sshtools.j2ssh.openssh.PEM
getKeyFromPassphrase
-
-
-
-
Method Detail
-
getHeader
public java.util.Map getHeader()
- Returns:
-
getPayload
public byte[] getPayload()
- Returns:
-
getType
public java.lang.String getType()
- Returns:
-
decryptPayload
public byte[] decryptPayload(java.lang.String passphrase) throws java.security.GeneralSecurityException
- Parameters:
passphrase
-- Returns:
- Throws:
java.security.GeneralSecurityException
java.security.NoSuchAlgorithmException
-
-