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

Class GeneralName

object --+
         |
        GeneralName

An object representing a GeneralName or list of GeneralNames.
Instance Methods [hide private]
 
__getitem__(x, y)
x[y]
 
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
 
__len__(x)
len(x)
 
__repr__(x)
repr(x)
Parameters:
get_name(repr_kind=AsString)
Specifies what the contents of the returned tuple will be.

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

Properties [hide private]
  name
Returns the general name as a string
  type_enum
Returns the general name type enumerated constant
  type_name
Returns the general name type enumerated constant as a string
  type_string
Returns the type of the general name as a string (e.g.

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__

__repr__(x)
(Representation operator)

 
repr(x)
Overrides: object.__repr__

get_name(repr_kind=AsString)

 
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 the value of the GeneralName according to the representation type parameter.

Returns:
Parameters:

Property Details [hide private]

type_string

Returns the type of the general name as a string (e.g. "URI")