|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jssh.RSAPrivateKeyFile
This class encapsulates the properties and behaviour of an SSH RSA private-key file. The file has the following structure:
Constructor Summary | |
RSAPrivateKeyFile(java.lang.String filename_)
Constructor |
Method Summary | |
int |
getCipherType()
|
java.lang.String |
getComment()
|
RSAPrivateKey |
getPrivateKey()
This method should be called if the key is not encrypted, ie getCipherType() returns SSH_CIPHER_NONE; |
RSAPrivateKey |
getPrivateKey(java.lang.String passphrase_)
This method should be called if the key is encrypted, ie if getCipherType() returns SSH_CIPHER_3DES. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RSAPrivateKeyFile(java.lang.String filename_) throws java.io.IOException
Method Detail |
public int getCipherType()
public java.lang.String getComment()
public RSAPrivateKey getPrivateKey() throws java.io.IOException
java.io.IOException
public RSAPrivateKey getPrivateKey(java.lang.String passphrase_) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |