Package AccessGrid :: Module MyProxy
[show private | hide private]
[frames | no frames]

Module AccessGrid.MyProxy

Exceptions
GetException  
RetrieveProxyException  

Function Summary
  create_cert_req(keyType, bits, messageDigest, extensions)
Create a new certificate request and store it in the repository.
  deserialize_certs(inp_dat)
  deserialize_response(msg)
Deserialize a MyProxy server response
  get_config_file()
  get_myproxy_config()
Returns: a tuple of (hostname,port,username)
  myproxy_logon(hostname, username, passphrase, outfile, lifetime, port)
Function to retrieve a proxy credential from a MyProxy server
  myproxy_logon_py(hostname, username, passphrase, outfile, lifetime, port)
Function to retrieve a proxy credential from a MyProxy server
  set_myproxy_config(hostname, port, username, subject)

Variable Summary
str CMD_GET = 'VERSION=MYPROXYv2\nCOMMAND=0\nUSERNAME=%s\nPA...

Function Details

create_cert_req(keyType=6, bits=1024, messageDigest='md5', extensions=None)

Create a new certificate request and store it in the repository. Returns a CertificateRequestDescriptor for that request.

nameEntries is a list of pairs (key, value) where key is a standard distinguished name key, and value is the value to be used for that key.

extensions is a list of triples (name, critical, value) to be used to set the requests extensions. If passed in as none, a useful default set of extensions will be used.

deserialize_response(msg)

Deserialize a MyProxy server response

Returns: integer response, errortext (if any)

get_myproxy_config()

Returns: a tuple of (hostname,port,username)

myproxy_logon(hostname, username, passphrase, outfile=None, lifetime=43200, port=7512)

Function to retrieve a proxy credential from a MyProxy server

Exceptions: GetException, RetrieveProxyException

myproxy_logon_py(hostname, username, passphrase, outfile=None, lifetime=43200, port=7512)

Function to retrieve a proxy credential from a MyProxy server

Exceptions: GetException, RetrieveProxyException

Variable Details

CMD_GET

Type:
str
Value:
'''VERSION=MYPROXYv2
COMMAND=0
USERNAME=%s
PASSPHRASE=%s
LIFETIME=%d\x00'''                                                     

Generated by Epydoc 2.1 on Mon Jan 09 13:23:47 2006 http://epydoc.sf.net