123456789_123456789_123456789_123456789_123456789_

Class: OpenSSL::SSL::Session

Relationships & Source Files
Namespace Children
Exceptions:
Inherits: Object
Defined in: ext/openssl/ossl_ssl_session.c

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(ssl_socket) ⇒ Session .new(string) ⇒ Session

Creates a new Session object from an instance of SSLSocket or DER/PEM encoded String.

Instance Attribute Details

#timeTime (rw)

Returns the time at which the session was established.

#time=(time) (rw) #time=(integer)

Sets start time of the session. Time resolution is in seconds.

#timeoutInteger (rw)

Returns the timeout value set for the session, in seconds from the established time.

#timeout=(integer) (rw)

Sets how long until the session expires in seconds.

Instance Method Details

#==(session2) ⇒ Boolean

Returns true if the two Session is the same, false if not.

#idString

Returns the Session ID.

#to_derString

Returns an ::OpenSSL::ASN1 encoded String that contains the Session object.

#to_pemString

Returns a PEM encoded String that contains the Session object.

#to_textString

Shows everything in the Session object. This is for diagnostic purposes.