net.adamcin.httpsig.ssh.bc
Class PEMUtil

java.lang.Object
  extended by net.adamcin.httpsig.ssh.bc.PEMUtil

public class PEMUtil
extends Object


Constructor Summary
PEMUtil()
           
 
Method Summary
static Key readKey(byte[] keyBytes, char[] passphrase)
          Read a single PEM-formatted key
static Key readKey(File privateKeyFile, char[] passphrase)
          Read a single PEM-formatted key
static Key readKey(InputStream is, char[] passphrase)
          Read a single PEM-formatted key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PEMUtil

public PEMUtil()
Method Detail

readKey

public static Key readKey(InputStream is,
                          char[] passphrase)
                   throws IOException
Read a single PEM-formatted key

Parameters:
is -
passphrase -
Returns:
Throws:
IOException

readKey

public static Key readKey(File privateKeyFile,
                          char[] passphrase)
                   throws IOException
Read a single PEM-formatted key

Parameters:
privateKeyFile -
passphrase -
Returns:
Throws:
IOException

readKey

public static Key readKey(byte[] keyBytes,
                          char[] passphrase)
                   throws IOException
Read a single PEM-formatted key

Parameters:
keyBytes -
passphrase -
Returns:
Throws:
IOException


Copyright © 2013-2014. All Rights Reserved.