You are viewing information archived from Mozilla.org on 2014-10-02.
Package nss :: Module nss :: Class CRLDistributionPoint
[hide private]
[frames] | no frames]

Class CRLDistributionPoint

object --+
         |
        CRLDistributionPoint

An object representing a CRL Distribution Point
Instance Methods [hide private]
 
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
a new object with type S, a subtype of T
__new__(T, S, ...)
 
__repr__(x)
repr(x)
 
__str__(x)
str(x)
string)
format(level=0, indent=' ')
This is equivalent to: indented_format(obj.format_lines()) on an object providing a format_lines() method.
[(level, string),...]
format_lines(level=0)
Formats the object into a sequence of lines with indent level information.
(general_name, ...)
get_general_names(repr_kind=AsString)
Returns a tuple of general names in the CRL Distribution Point.
(reason, ...)
get_reasons(repr_kind=AsEnumDescription)
Returns a tuple of reasons in the CRL Distribution Point.

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

Properties [hide private]
  issuer
returns the CRL Issuer as a GeneralName object if defined, returns None if not defined

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 
x.__init__(...) initializes x; see help(type(x)) for signature
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__

format(level=0, indent=' ')

 
This is equivalent to: indented_format(obj.format_lines()) on an object providing a format_lines() method.
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 tuple. The first item in the tuple is an integer representing the indentation level for that line. Any remaining items in the tuple are strings to be output on that line.

The output of this function can be formatted into a single string by calling indented_format(), e.g.:

print indented_format(obj.format_lines())

The reason this function returns a tuple as opposed to an single indented string is to support other text formatting systems such as GUI's with indentation controls. See indented_format() for a complete explanation.

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

get_general_names(repr_kind=AsString)

 

Returns a tuple of general names in the CRL Distribution Point. If the distribution point type is not nss.generalName or the list was empty then the returned tuple will be empty.

You may specify how the each member of the tuple is represented, by default it will be as a string.

Parameters:
  • repr_kind (RepresentationKind constant) - Specifies what the contents of the returned tuple will be. May be one of:

    AsObject
    The general name as a nss.GeneralName object
    AsString
    The general name as a string. (e.g. "http://crl.geotrust.com/crls/secureca.crl")
    AsTypeString
    The general name type as a string.
    (e.g. "URI")
    AsTypeEnum
    The general name type as a general name type enumerated constant.
    (e.g. nss.certURI )
    AsLabeledString
    The general name as a string with it's type prepended. (e.g. "URI: http://crl.geotrust.com/crls/secureca.crl"
Returns: (general_name, ...)

get_reasons(repr_kind=AsEnumDescription)

 

Returns a tuple of reasons in the CRL Distribution Point. If no reasons were defined the returned tuple will be empty.

You may specify how the each member of the tuple is represented, by default it will be as a string.

Parameters:
  • repr_kind (RepresentationKind constant) - Specifies what the contents of the returned tuple will be. May be one of:

    AsEnum
    The enumerated constant. (e.g. nss.crlEntryReasonCaCompromise)
    AsEnumDescription
    A friendly human readable description of the enumerated constant as a string.
    (e.g. "CA Compromise")
    AsIndex
    The bit position within the bit string.
Returns: (reason, ...)