com.mindbright.ssh2
Class SSH2PuttyKeyFile
java.lang.Object
com.mindbright.ssh2.SSH2PuttyKeyFile
public class SSH2PuttyKeyFile
- extends java.lang.Object
This class implements support for reading the PuTTY key file format.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SSH2PuttyKeyFile
public SSH2PuttyKeyFile(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
load
public void load(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
validate
public boolean validate(java.lang.String passphrase)
throws SSH2FatalException
- Throws:
SSH2FatalException
getPublicKeyBlob
public byte[] getPublicKeyBlob()
getPrivateKeyBlob
public byte[] getPrivateKeyBlob()
getFormat
public java.lang.String getFormat()
getComment
public java.lang.String getComment()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object