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

Class InitParameters

object --+
         |
        InitParameters

An object representing NSS Initialization Parameters
Instance Methods [hide private]
 
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
a new object with type S, a subtype of T
__new__(T, S, ...)
 
__str__(x)
str(x)
string)
format(level=0, indent=' ')
This is equivalent to: nss.indented_format(cert.signed_data.format_lines())
[(level, string),...]
format_lines(level=0)
Formats the object into a sequence of lines with indent level information.

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

Properties [hide private]
  crypto_slot_description
  crypto_token_description
  db_slot_description
  db_token_description
  fips_slot_description
  fips_token_description
  library_description
  manufacturer_id
manufacturer id (max 32 chars)
  min_password_len
minimum password length
  password_required
boolean indicating if a password is required

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__

__new__(T, S, ...)

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

__str__(x)
(Informal representation operator)

 
str(x)
Overrides: object.__str__

format(level=0, indent=' ')

 
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.
  • indent (string) - string replicated once for each indent level then prepended to output line
Returns: string)

format_lines(level=0)

 

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.

Parameters:
  • level (integer) - Initial indentation level, all subsequent indents are relative to this starting level.
Returns: [(level, string),...]