com.sshtools.j2ssh.openssh
Class PEMReader

java.lang.Object
  extended by com.sshtools.j2ssh.openssh.PEM
      extended by 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
PEMReader(java.io.Reader r)
          Creates a new PEMReader object.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PEMReader

public PEMReader(java.io.Reader r)
          throws java.io.IOException
Creates a new PEMReader object.

Parameters:
r -
Throws:
java.io.IOException
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


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