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

type 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.
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.
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")