com.sshtools.j2ssh.openssh
Class PEM

java.lang.Object
  extended by com.sshtools.j2ssh.openssh.PEM
Direct Known Subclasses:
PEMReader, PEMWriter

public class PEM
extends java.lang.Object

Version:
$Revision: 1.13 $
Author:
$author$

Field Summary
static java.lang.String DSA_PRIVATE_KEY
           
protected static char[] HEX_CHARS
           
protected static int MAX_LINE_LENGTH
           
protected static java.lang.String PEM_BEGIN
           
protected static java.lang.String PEM_BOUNDARY
           
protected static java.lang.String PEM_END
           
static java.lang.String RSA_PRIVATE_KEY
           
 
Constructor Summary
PEM()
           
 
Method Summary
protected static javax.crypto.SecretKey getKeyFromPassphrase(java.lang.String passphrase, byte[] iv, int keySize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DSA_PRIVATE_KEY

public static final java.lang.String DSA_PRIVATE_KEY
See Also:
Constant Field Values

RSA_PRIVATE_KEY

public static final java.lang.String RSA_PRIVATE_KEY
See Also:
Constant Field Values

PEM_BOUNDARY

protected static final java.lang.String PEM_BOUNDARY
See Also:
Constant Field Values

PEM_BEGIN

protected static final java.lang.String PEM_BEGIN
See Also:
Constant Field Values

PEM_END

protected static final java.lang.String PEM_END
See Also:
Constant Field Values

MAX_LINE_LENGTH

protected static final int MAX_LINE_LENGTH
See Also:
Constant Field Values

HEX_CHARS

protected static final char[] HEX_CHARS
Constructor Detail

PEM

public PEM()
Method Detail

getKeyFromPassphrase

protected static javax.crypto.SecretKey getKeyFromPassphrase(java.lang.String passphrase,
                                                             byte[] iv,
                                                             int keySize)
                                                      throws java.security.NoSuchAlgorithmException,
                                                             java.security.spec.InvalidKeySpecException
Parameters:
passphrase -
iv -
keySize -
Returns:
Throws:
java.security.NoSuchAlgorithmException
java.security.spec.InvalidKeySpecException
java.lang.Error


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