Package yawPyCrypto :: Module Key :: Class Untrusted
[show private | hide private]
[frames | no frames]

Class Untrusted

object --+
         |
        Untrusted


This class is a wrapper around untrusted key arguments. It protects the programmer from using untrusted arguments by wrapping them, so that they must explicitly be dereferenced by calling getValue(). In case your code wants to check whether an argument is untrusted, call the isUntrusted(value) method, which returns True when an argument is untrusted.
Method Summary
  __init__(self, obj)
Initialization of an untrusted key argument.
a new object with type S, a subtype of T __new__(S, ...)
  __repr__(self)
Return a representation of the untrusted object.
  __str__(self)
Return a string form of the untrusted object.
  getValue(self)
Returns the reference this object keeps to the untrusted object which was created due to accessing an unstrusted keyword argument.

Method Details

__init__(self, obj)
(Constructor)

Initialization of an untrusted key argument. Creates a wrapper around the passed in object. Should never need to be called by user-code.

__new__(S, ...)

Returns:
a new object with type S, a subtype of T

__repr__(self)
(Representation operator)

Return a representation of the untrusted object.

__str__(self)
(Informal representation operator)

Return a string form of the untrusted object. This includes a short description of what the untrusted object is, along with the stringified form of the actual object.

getValue(self)

Returns the reference this object keeps to the untrusted object which was created due to accessing an unstrusted keyword argument. The instance you call this on keeps a reference to the object, so that you may retrieve it more than once.

Generated by Epydoc 1.1 on Sun Aug 17 03:32:32 2003 http://epydoc.sf.net