Package com.trilead.ssh2.crypto
Class PEMDecoder
java.lang.Object
com.trilead.ssh2.crypto.PEMDecoder
public class PEMDecoder extends Object
PEM Support.
- Version:
- $Id: PEMDecoder.java,v 1.2 2008/04/01 12:38:09 cplattne Exp $
- Author:
- Christian Plattner, plattner@trilead.com
-
Constructor Summary
Constructors Constructor Description PEMDecoder() -
Method Summary
Modifier and Type Method Description static Objectdecode(char[] pem, String password)Deprecated.static KeyPairdecodeKeyPair(char[] pem, String password)static byte[]generateKeyFromPasswordSaltWithMD5(byte[] password, byte[] salt, int keyLen)static booleanisPEMEncrypted(PEMStructure ps)
-
Constructor Details
-
PEMDecoder
public PEMDecoder()
-
-
Method Details
-
generateKeyFromPasswordSaltWithMD5
public static byte[] generateKeyFromPasswordSaltWithMD5(byte[] password, byte[] salt, int keyLen) throws IOException- Throws:
IOException
-
isPEMEncrypted
- Throws:
IOException
-
decode
Deprecated.- Throws:
IOException
-
decodeKeyPair
- Throws:
IOException
-