A Subject is an instance of a credential used by an AG User.
A Subject can be identified by various authentication mechanisms. we
currently support X509 certificates (per Globus).
Method Summary |
|
__init__ (self,
name,
auth_type,
auth_data,
id)
|
|
__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. |