Package AccessGrid :: Package Security :: Module CRSClient :: Class CRSClient
[show private | hide private]
[frames | no frames]

Class CRSClient


Method Summary
  __init__(self, url, proxyHost, proxyPort)
  RequestCertificate(self, emailAddress, certReq)
Request a certificate from this service.
  RetrieveCACertificates(self)
Retrieve the CA certificate(s) for this server.
  RetrieveCertificate(self, token)
Retrieve an issued certificate from this service.

Method Details

RequestCertificate(self, emailAddress, certReq)

Request a certificate from this service.
Parameters:
emailAddress - the email address of the submitter
           (type=string)
certReq - is the PEM-formatted certificate request.
           (type=string containing PEM data)
Returns:
a unique token used to retrieve the certificate when it's ready.
Raises:
IOError - if the proxy fails for some reason @raise StandardError if the xmlrpc part fails

RetrieveCACertificates(self)

Retrieve the CA certificate(s) for this server.
Returns:
tuple (status, value). If status is zero, value contains an error message about the failure. Otherwise, value is a list of pairs (CACert, SigningPolicy) containing the CA certs and signing policy files comprising the certifiation path for the certs issued by this server.
Raises:
CRSClientConnectionFailed - if the service can't get the certificate.
StandardError - if the retrieve fails

RetrieveCertificate(self, token)

Retrieve an issued certificate from this service.
Parameters:
token - the token used to know the requestor should get a specific certificate.
           (type=string)
Returns:
tuple (status, value). If status is zero, value contains an error message about the failure. Otherwise, value is a string containing the certificate.
Raises:
CRSClientConnectionFailed - if the service can't get the certificate.
StandardError - if the retrieve fails

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