Package AccessGrid :: Package Security :: Package wxgui :: Module CertificateRepository :: Class Certificate
[show private | hide private]
[frames | no frames]

Class Certificate


Method Summary
  __init__(self, path, keyPath, repo)
Create a certificate object.
  GetFilePath(self, filename)
  GetFingerprint(self)
Returns a tuple (type, fingerprint)
  GetIssuer(self)
  GetIssuerSerialHash(self)
  GetKeyPath(self)
  GetMetadata(self, key)
  GetModulus(self)
  GetModulusHash(self)
  GetNotValidAfter(self)
Return notafter time as seconds since the epoch
  GetNotValidAfterText(self)
Return notafter time as a text string in the local timezone.
  GetNotValidBefore(self)
Return notbefore time as seconds since the epoch
  GetNotValidBeforeText(self)
Return notbefore time as a text string in the local timezone.
  GetPath(self)
  GetSerialNumber(self)
  GetShortSubject(self)
  GetSubject(self)
  GetSubjectHash(self)
  GetVerboseHtml(self)
  GetVerboseText(self)
  GetVersion(self)
  IsExpired(self)
  IsGlobusProxy(self)
  SetMetadata(self, key, value)
  WriteCertificate(self, file)
Write the certificate to the given file.
  _GetMetadataKey(self, key)

Method Details

__init__(self, path, keyPath=None, repo=None)
(Constructor)

Create a certificate object.

This wraps an underlying OpenSSL X.509 cert object.

path - pathname of the stored certificate. If path is a file object, use that to load the certificate instead of opening a file. keyPath - pathname of the private key for the certificate

GetFingerprint(self)

Returns a tuple (type, fingerprint)

GetNotValidAfter(self)

Return notafter time as seconds since the epoch

GetNotValidAfterText(self)

Return notafter time as a text string in the local timezone.

GetNotValidBefore(self)

Return notbefore time as seconds since the epoch

GetNotValidBeforeText(self)

Return notbefore time as a text string in the local timezone.

WriteCertificate(self, file)

Write the certificate to the given file.


Generated by Epydoc 2.1 on Thu Apr 14 16:39:26 2005 http://epydoc.sf.net