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

type SSLChannelInfo

object --+
         |
        SSLChannelInfo

SSLChannelInformation(obj)

An object representing SSLChannelInformation.

Instance Methods [hide private]
 
__init__(obj)
x.__init__(...) initializes x; see help(type(x)) 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: 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.
Properties [hide private]
  auth_key_bits
Returns the auth key bits
  cipher_suite
Returns the cipher suite enum
  compression_method
Returns the compression method enum
  compression_method_name
Returns the compression method name
  creation_time
Returns creation time as a DateTime object in local time zone
  creation_time_utc
Returns creation time as a DateTime object in UTC time zone
  expiration_time
Returns expiration time as a DateTime object in local time zone
  expiration_time_utc
Returns expiration time as a DateTime object in UTC time zone
  kea_key_bits
Returns the kea key bits
  last_access_time
Returns last access time as a DateTime object in local time zone
  last_access_time_utc
Returns last access time as a DateTime object in UTC time zone
  major_protocol_version
Returns the major protocol version
  minor_protocol_version
Returns the minor protocol version
  protocol_version
Returns the protocol version, major in octet[1], minor in octet[0]
  protocol_version_enum
Returns the protocol version as an enumerated constant
  protocol_version_str
Returns the protocol version as a descriptive string
  session_id
Returns the session ID as a SecItem object
Method Details [hide private]

__init__(obj)
(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__

__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 nss.nss.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 nss.nss.indented\_format() for a complete explanation.

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