Package nss :: Module nss :: Class SecItem
[hide private]
[frames] | no frames]

Class SecItem

object --+
         |
        SecItem

SecItem(data=None, type=siBuffer)

Encoded data. Used internally by NSS

Instance Methods [hide private]
 
__getitem__(x, y)
x[y]
 
__getslice__(x, i, j)
x[i:j]
 
__init__(data=None, type=siBuffer)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
__len__(x)
len(x)
a new object with type S, a subtype of T
__new__(T, S, ...)
 
__repr__(x)
repr(x)
 
__str__(x)
str(x)

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]
  data
contents of SecItem buffer
  len
number of octets in SecItem buffer
  type
the SecItem type (si* constant)

Inherited from object: __class__

Method Details [hide private]

__getslice__(x, i, j)
(Slicling operator)

 

x[i:j]

Use of negative indices is not supported.

__init__(data=None, type=siBuffer)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Parameters:
  • data (any read buffer compatible object (e.g. buffer or string)) - raw data to initialize from
  • type (int) - SECItemType constant (e.g. si*)
Overrides: object.__init__

__new__(T, S, ...)

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

__repr__(x)
(Representation operator)

 
repr(x)
Overrides: object.__repr__

__str__(x)
(Informal representation operator)

 
str(x)
Overrides: object.__str__