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
All Methods Static Methods Concrete Methods Deprecated Methods 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)
-
-
-
Method Detail
-
generateKeyFromPasswordSaltWithMD5
public static byte[] generateKeyFromPasswordSaltWithMD5(byte[] password, byte[] salt, int keyLen) throws IOException- Throws:
IOException
-
isPEMEncrypted
public static boolean isPEMEncrypted(PEMStructure ps) throws IOException
- Throws:
IOException
-
decode
@Deprecated public static Object decode(char[] pem, String password) throws IOException
Deprecated.- Throws:
IOException
-
decodeKeyPair
public static KeyPair decodeKeyPair(char[] pem, String password) throws IOException
- Throws:
IOException
-
-