| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
SecItem
SecItem(data=None, type=siBuffer)
:Parameters:
data : any read buffer compatible object (e.g. buffer or string)
raw data to initialize from
type : int
SECItemType constant (e.g. si*)
Encoded data. Used internally by NSS
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
a new object with type S, a subtype of T |
|
||
|
|||
|
|||
string or list of strings |
|
||
(obj, ...) |
|
||
string or list of strings |
|
||
|
Inherited from |
|||
|
|||
|
data contents of SecItem buffer |
|||
|
len number of octets in SecItem buffer |
|||
|
type the SecItem type (si* constant) |
|||
|
Inherited from |
|||
|
|||
x[i:j] Use of negative indices is not supported. |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
|
repr(x)
|
str(x)
|
:Parameters:
octets_per_line : integer
Number of octets formatted on one line, if 0 then
return a single string instead of an array of lines
separator : string
String used to seperate each octet
If None it will be as if the empty string had been
passed and no separator will be used.
Interpret the SecItem as containing DER encoded data consisting
of a <type,length,value> triplet (e.g. TLV). This function skips
the type and length components and returns the value component as
a hexadecimal string or a list of hexidecimal strings with a
maximum of octets_per_line in each list element. See data_to_hex()
for a more detailed explanation.
|
:Parameters:
sec_item : SecItem object
A SecItem containing a DER encoded sequence of OID's
repr_kind : RepresentationKind constant
Specifies what the contents of the returned tuple will be.
May be one of:
AsObject
Each extended key usage will be a SecItem object embedding
the OID in DER format.
AsString
Each extended key usage will be a descriptive string.
(e.g. "TLS Web Server Authentication Certificate")
AsDottedDecimal
Each extended key usage will be OID rendered as a dotted decimal string.
(e.g. "OID.1.3.6.1.5.5.7.3.1")
AsEnum
Each extended key usage will be OID tag enumeration constant (int).
(e.g. nss.SEC_OID_EXT_KEY_USAGE_SERVER_AUTH)
Return a tuple of OID's according the representation kind.
|
:Parameters:
octets_per_line : integer
Number of octets formatted on one line, if 0 then
return a single string instead of an array of lines
separator : string
String used to seperate each octet
If None it will be as if the empty string had been
passed and no separator will be used.
Equivalent to calling data_to_hex(sec_item)
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Sat Oct 27 13:05:35 2012 | http://epydoc.sourceforge.net |