|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kohsuke.putty.PuTTYKey
public class PuTTYKey
Interprets PuTTY's ".ppk" file.
PuTTY-User-Key-File-2: ssh-rsa Encryption: none Comment: rsa-key-20080514 Public-Lines: 4 AAAAB3NzaC1yc2EAAAABJQAAAIEAiPVUpONjGeVrwgRPOqy3Ym6kF/f8bltnmjA2 BMdAtaOpiD8A2ooqtLS5zWYuc0xkW0ogoKvORN+RF4JI+uNUlkxWxnzJM9JLpnvA HrMoVFaQ0cgDMIHtE1Ob1cGAhlNInPCRnGNJpBNcJ/OJye3yt7WqHP4SPCCLb6nL nmBUrLM= Private-Lines: 8 AAAAgGtYgJzpktzyFjBIkSAmgeVdozVhgKmF6WsDMUID9HKwtU8cn83h6h7ug8qA hUWcvVxO201/vViTjWVz9ALph3uMnpJiuQaaNYIGztGJBRsBwmQW9738pUXcsUXZ 79KJP01oHn6Wkrgk26DIOsz04QOBI6C8RumBO4+F1WdfueM9AAAAQQDmA4hcK8Bx nVtEpcF310mKD3nsbJqARdw5NV9kCxPnEsmy7Sy1L4Ob/nTIrynbc3MA9HQVJkUz 7V0va5Pjm/T7AAAAQQCYbnG0UEekwk0LG1Hkxh1OrKMxCw2KWMN8ac3L0LVBg/Tk 8EnB2oT45GGeJaw7KzdoOMFZz0iXLsVLNUjNn2mpAAAAQQCN6SEfWqiNzyc/w5n/ lFVDHExfVUJp0wXv+kzZzylnw4fs00lC3k4PZDSsb+jYCMesnfJjhDgkUA0XPyo8 Emdk Private-MAC: 50c45751d18d74c00fca395deb7b7695e3ed6f77
Constructor Summary | |
---|---|
PuTTYKey(java.io.File ppkFile,
java.lang.String passphrase)
|
|
PuTTYKey(java.io.InputStream in,
java.lang.String passphrase)
|
|
PuTTYKey(java.io.Reader in,
java.lang.String passphrase)
|
Method Summary | |
---|---|
java.lang.String |
getAlgorithm()
Key type. |
static boolean |
isPuTTYKeyFile(java.io.File ppkFile)
Checks if the given file is a PuTTY's ".ppk" file, by looking at the file contents. |
static boolean |
isPuTTYKeyFile(java.io.InputStream in)
|
static boolean |
isPuTTYKeyFile(java.io.Reader _reader)
|
java.lang.String |
toOpenSSH()
Converts this key into OpenSSH format. |
void |
toOpenSSH(java.io.File f)
Converts the key to OpenSSH format, then write it to a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PuTTYKey(java.io.File ppkFile, java.lang.String passphrase) throws java.io.IOException
java.io.IOException
public PuTTYKey(java.io.InputStream in, java.lang.String passphrase) throws java.io.IOException
java.io.IOException
public PuTTYKey(java.io.Reader in, java.lang.String passphrase) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public java.lang.String getAlgorithm()
public java.lang.String toOpenSSH() throws java.io.IOException
java.io.IOException
public void toOpenSSH(java.io.File f) throws java.io.IOException
java.io.IOException
public static boolean isPuTTYKeyFile(java.io.File ppkFile) throws java.io.IOException
java.io.IOException
public static boolean isPuTTYKeyFile(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static boolean isPuTTYKeyFile(java.io.Reader _reader) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |