Class: OpenSSL::SSL::Session
Relationships & Source Files | |
Namespace Children | |
Exceptions:
| |
Inherits: | Object |
Defined in: | ext/openssl/ossl_ssl_session.c |
Class Method Summary
- .new(SSLSocket | string) ⇒ Session constructor
Instance Attribute Summary
-
#time ⇒ Time
rw
Gets start time of the session.
-
#time=(Time) ⇒ Time
rw
Sets start time of the session.
-
#timeout ⇒ Integer
rw
Gets how long until the session expires in seconds.
-
#timeout=(integer) ⇒ Integer
rw
Sets how long until the session expires in seconds.
Instance Method Summary
- #==(session2) ⇒ Boolean
-
#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(SSLSocket | string) ⇒ Session
Instance Attribute Details
#time ⇒ Time
(rw)
Gets start time of the session.
#time=(Time) ⇒ Time
(rw)
#time=(integer) ⇒ Time
Time
(rw)
#time=(integer) ⇒ Time
Sets start time of the session. Time resolution is in seconds.
#timeout ⇒ Integer (rw)
Gets how long until the session expires in seconds.
#timeout=(integer) ⇒ Integer (rw)
Sets how long until the session expires in seconds.
Instance Method Details
#==(session2) ⇒ Boolean
#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.