Package pyGlobus :: Module security :: Class X509
[show private | hide private]
[frames | no frames]

Class X509


A class for underlying X509 objects
Method Summary
  __init__(self, handle, free)
  __del__(self)
frees the memory associated with this handle
  get_der_encoding(self)
returns a DER encoding of the underlying handle
  get_handle(self)
  get_public_key(self)
retrieves the public key from the underlying handle
  sign(self, pkey)
signs the certificate

Method Details

__init__(self, handle=None, free=1)
(Constructor)

Parameters:
handle - A SWIG'ized pointer to a X509 object
free - an int specifing whether the instance should be delegated the responsibility of freeing the memory associated with the handle
Raises:
X509Exception - A X509Exception is raised if the module can not be initialized or the handle can not be created

__del__(self)
(Destructor)

frees the memory associated with this handle

get_der_encoding(self)

returns a DER encoding of the underlying handle

get_public_key(self)

retrieves the public key from the underlying handle
Returns:
A EVP_Key instance which represents the public key

sign(self, pkey)

signs the certificate
Parameters:
pkey - an EVP_PKEY object, which will be used to sign the certificate
Returns:
an int which is the length of the signature

Generated by Epydoc 2.1 on Tue Apr 4 14:32:56 2006 http://epydoc.sf.net