com.sshtools.j2ssh.openssh

Class 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

PEMReader(Reader r)
Creates a new PEMReader object.

Method Summary

byte[]
decryptPayload(String passphrase)
Map
getHeader()
byte[]
getPayload()
String
getType()

Methods inherited from class com.sshtools.j2ssh.openssh.PEM

getKeyFromPassphrase

Constructor Details

PEMReader

public PEMReader(Reader r)
            throws IOException
Creates a new PEMReader object.
Parameters:
r -

Method Details

decryptPayload

public byte[] decryptPayload(String passphrase)
            throws GeneralSecurityException
Parameters:
passphrase -
Returns:

getHeader

public Map getHeader()
Returns:

getPayload

public byte[] getPayload()
Returns:

getType

public String getType()
Returns:

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.