Home | Trees | Index | Help |
---|
Package paramiko :: Class DSSKey |
|
object
--+ |PKey
--+ | DSSKey
Method Summary | |
---|---|
Create a new instance of this public key type. | |
__hash__(self)
| |
str |
Return a string of an SSH Message made up of the public part(s) of
this key. |
bool |
Return True if this key has the private part necessary
for signing data. |
DSSKey
|
Generate a new private DSS key. (Static method) |
int |
Return the number of significant bits in this key. |
str |
Return the name of this private key implementation. |
sign_ssh_data(self,
rpool,
data)
| |
boolean |
Given a blob of data, and an SSH message representing a signature of that data, verify that it was signed with this key. |
Write private key contents into a file (or file-like) object. | |
Write private key contents into a file. | |
Inherited from PKey | |
int |
Compare this key to another. |
PKey
|
Create a key object by reading a private key from a file (or file-like) object. (Class method) |
PKey
|
Create a key object by reading a private key file. (Class method) |
str |
Return a base64 string containing the public part of this key. |
str |
Return an MD5 fingerprint of the public part of this key. |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value |
Instance Method Details |
---|
__init__(self,
msg=None,
data=None,
filename=None,
password=None,
vals=None,
file_obj=None)
Create a new instance of this public key type. If |
__str__(self)
Return a string of an SSH |
can_sign(self)ReturnTrue if this key has the private part necessary
for signing data.
|
get_bits(self)Return the number of significant bits in this key. This is useful for judging the relative security of a key.
|
get_name(self)Return the name of this private key implementation.
|
verify_ssh_sig(self, data, msg)Given a blob of data, and an SSH message representing a signature of that data, verify that it was signed with this key.
|
write_private_key(self, file_obj, password=None)Write private key contents into a file (or file-like) object. If the password is notNone , the key is encrypted before
writing.
|
write_private_key_file(self, filename, password=None)Write private key contents into a file. If the password is notNone , the key is encrypted before writing.
|
Static Method Details |
---|
generate(bits=1024, progress_func=None)Generate a new private DSS key. This factory function can be used to generate a new host key or authentication key.
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Mon Jan 21 19:06:09 2008 | http://epydoc.sf.net |