Class: OpenSSL::SSL::Session
Relationships & Source Files | |
Namespace Children | |
Exceptions:
| |
Inherits: | Object |
Defined in: | ext/openssl/ossl_ssl_session.c |
Class Method Summary
-
.new(ssl_socket) ⇒ Session
constructor
Creates a new
Session
object from an instance of SSLSocket or DER/PEM encoded String.
Instance Attribute Summary
-
#time ⇒ Time
rw
Returns the time at which the session was established.
-
#time=(time)
rw
Sets start time of the session.
-
#timeout ⇒ Integer
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 Summary
-
#==(session2) ⇒ Boolean
Returns true if the two
Session
is the same, false if not. -
#id ⇒ String
Returns the
Session
ID. -
#to_der ⇒ String
Returns an ::OpenSSL::ASN1 encoded String that contains the
Session
object. -
#to_pem ⇒ String
Returns a PEM encoded String that contains the
Session
object. -
#to_text ⇒ String
Shows everything in the
Session
object.
Constructor Details
.new(ssl_socket) ⇒ Session
.new(string) ⇒ Session
Session
.new(string) ⇒ Session
Creates a new Session
object from an instance of SSLSocket or DER/PEM encoded String.
Instance Attribute Details
#time ⇒ Time
(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.
#timeout ⇒ Integer (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.
#id ⇒ String
Returns the Session
ID.
#to_der ⇒ String
Returns an ::OpenSSL::ASN1 encoded String that contains the Session
object.
#to_pem ⇒ String
Returns a PEM encoded String that contains the Session
object.
#to_text ⇒ String
Shows everything in the Session
object. This is for diagnostic purposes.