Package com.sshtools.j2ssh.openssh
Class PEMWriter
java.lang.Object
com.sshtools.j2ssh.openssh.PEM
com.sshtools.j2ssh.openssh.PEMWriter
- Version:
- $Revision: 1.12 $
- 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
Modifier and TypeMethodDescriptionvoid
encryptPayload
(byte[] payload, String passphrase) byte[]
getType()
void
setPayload
(byte[] bs) void
void
Methods inherited from class com.sshtools.j2ssh.openssh.PEM
getKeyFromPassphrase
-
Constructor Details
-
PEMWriter
public PEMWriter()Creates a new PEMWriter object.
-
-
Method Details
-
write
- Parameters:
w
-- Throws:
IOException
-
encryptPayload
- Parameters:
payload
-passphrase
-- Throws:
GeneralSecurityException
-
getHeader
- Returns:
-
getPayload
public byte[] getPayload()- Returns:
-
getType
- Returns:
-
setPayload
public void setPayload(byte[] bs) - Parameters:
bs
-
-
setType
- Parameters:
string
-
-