com.sshtools.j2ssh.openssh

Class PEM

Known Direct Subclasses:
PEMReader, PEMWriter

public class PEM
extends java.lang.Object

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

Field Summary

static String
DSA_PRIVATE_KEY
protected static char[]
HEX_CHARS
protected static int
MAX_LINE_LENGTH
protected static String
PEM_BEGIN
protected static String
PEM_BOUNDARY
protected static String
PEM_END
static String
RSA_PRIVATE_KEY

Method Summary

protected static SecretKey
getKeyFromPassphrase(String passphrase, byte[] iv, int keySize)

Field Details

DSA_PRIVATE_KEY

public static final String DSA_PRIVATE_KEY

HEX_CHARS

protected static final char[] HEX_CHARS

MAX_LINE_LENGTH

protected static final int MAX_LINE_LENGTH
Field Value:
75

PEM_BEGIN

protected static final String PEM_BEGIN

PEM_BOUNDARY

protected static final String PEM_BOUNDARY

PEM_END

protected static final String PEM_END

RSA_PRIVATE_KEY

public static final String RSA_PRIVATE_KEY

Method Details

getKeyFromPassphrase

protected static SecretKey getKeyFromPassphrase(String passphrase,
                                                byte[] iv,
                                                int keySize)
            throws NoSuchAlgorithmException,
                   InvalidKeySpecException
Parameters:
passphrase -
iv -
keySize -
Returns:

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