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

Class X509Subject

Subject --+
          |
         X509Subject


This is the X509 Subject, which is a specific subclass of the subject class used in X509 certificate based systems.
Method Summary
  __init__(self, name, auth_data)
  GetCN(self)
Return a short form of the CN in an X509Subject object.
    Inherited from Subject
  __cmp__(self, other)
Comparison operator, so two subjects can be compared.
  __hash__(self)
A hash method so subjects can be used as dictionary keys.
  __str__(self)
This method converts the subject to a string.
  _repr_(self)
This method creates an XML representation of the subject.
  GetAuthenticationData(self)
This accessory returns the authentication data.
  GetAuthenticationType(self)
This accessor returns the authentication type.
  GetName(self)
This accessor returns the subject name.
  GetSubject(self)
This returns a tuple containing the subject data, this is probably for legacy use.
  ToXML(self, doc)
This method extends the specified doc object with an xml representation of this subject.

Class Variable Summary
str AUTH_ANON = 'anonymous'
string AUTH_TYPE: the authentication type, 'x509' for this class.

Method Details

__init__(self, name, auth_data='')
(Constructor)

Parameters:
name - the name of the subject
           (type=string)
auth_data - opaque data associated with this subject.
           (type=string)
Overrides:
AccessGrid.Security.Subject.Subject.__init__

GetCN(self)

Return a short form of the CN in an X509Subject object.
Returns:
name as a string.

Class Variable Details

AUTH_ANON

Type:
str
Value:
'anonymous'                                                            

AUTH_TYPE

the authentication type, 'x509' for this class.
Type:
string
Value:
'x509'                                                                 

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