| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
PKCS12Decoder
PKCS12Decoder(file, password, slot=None)
:Parameters:
file : file name or file object
pkcs12 input data.
* If string treat as file path to open and read.
* If file object read from the file object.
password : string
The password protecting the PKCS12 contents
slot : `PK11Slot` object
The PK11 slot to use. If None defaults to internal
slot, see `nss.get_internal_key_slot()`
|
|||
|
|||
|
|||
|
|||
a new object with type S, a subtype of T |
|
||
|
|||
|
|||
|
|||
string) |
|
||
[(level, string),...] |
|
||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
|
repr(x)
|
str(x)
|
Import the contents of the `PKCS12Decoder` object into the current NSS database. During import if the certificate(s) in the `PKCS12Decoder` object does not have a nickname or there is a collision with an existing nickname then a callback will be invoked to provide a new nickname. See `pkcs12_set_nickname_collision_callback`. |
:Parameters:
level : integer
Initial indentation level, all subsequent indents are relative
to this starting level.
indent : string
string replicated once for each indent level then prepended to output line
This is equivalent to:
nss.indented_format(cert.signed_data.format_lines())
|
:Parameters:
level : integer
Initial indentation level, all subsequent indents are relative
to this starting level.
Formats the object into a sequence of lines with indent level
information. The return value is a list where each list item is a 2
valued tuple pair. The first item in the pair is an integer
representing the indentation level for that line and the second item
in the pair is the string value for the line.
The output of this function can be formatted into a single string
by calling nss.indented_format(). The reason this function returns
(level, string) pairs as opposed to an single indented string is to
support other text formatting systems with indentation controls.
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Sat Oct 27 13:05:35 2012 | http://epydoc.sourceforge.net |