Home | Trees | Indices | Help |
|
---|
|
object --+ | TrustRoot
This class represents an OpenID trust root. The parse
classmethod accepts a trust root string,
producing a TrustRoot
object. The method OpenID server
implementers would be most likely to use is the isSane
method, which checks the trust root for
given patterns that indicate that the trust root is too broad or points
to a local network resource.
Instance Methods | |||
bool
|
|
||
|
|||
bool
|
|
||
str |
|
||
|
|||
|
|||
Inherited from |
Class Methods | |||
NoneType or TrustRoot
|
|
||
|
|||
|
Properties | |
Inherited from |
Method Details |
This method creates a |
This method checks the to see if a trust root represents a reasonable (sane) set of URLs. 'http://*.com/', for example is not a reasonable pattern, as it cannot meaningfully specify the site claiming it. This function attempts to find many related examples, but it can only work via heuristics. Negative responses from this method should be treated as advisory, used only to alert the user to examine the trust root carefully.
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Validates a URL against this trust root.
|
str -> bool is this a sane trust root? |
quick func for validating a url against a trust root. See the TrustRoot class if you need more control. |
Return a discovery URL for this realm. This function does not check to make sure that the realm is valid. Its behaviour on invalid inputs is undefined.
Since: 2.1.0 |
repr(x)
|
str(x)
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Jul 29 15:11:28 2010 | http://epydoc.sourceforge.net |