Class: Wampproto::Acceptor::Request
- Inherits:
-
Object
- Object
- Wampproto::Acceptor::Request
- Extended by:
- Forwardable
- Defined in:
- lib/wampproto/acceptor/request.rb
Overview
Request object sent for authentication
Direct Known Subclasses
Instance Attribute Summary collapse
-
#authextra ⇒ Object
readonly
Returns the value of attribute authextra.
-
#authid ⇒ Object
readonly
Returns the value of attribute authid.
-
#hello ⇒ Object
readonly
Returns the value of attribute hello.
-
#realm ⇒ Object
readonly
Returns the value of attribute realm.
Instance Method Summary collapse
- #authmethod ⇒ Object
-
#initialize(hello) ⇒ Request
constructor
A new instance of Request.
- #public_key ⇒ Object
- #secret ⇒ Object
- #ticket ⇒ Object
Constructor Details
#initialize(hello) ⇒ Request
Returns a new instance of Request.
13 14 15 |
# File 'lib/wampproto/acceptor/request.rb', line 13 def initialize(hello) @hello = hello end |
Instance Attribute Details
#authextra ⇒ Object (readonly)
Returns the value of attribute authextra.
11 12 13 |
# File 'lib/wampproto/acceptor/request.rb', line 11 def authextra @authextra end |
#authid ⇒ Object (readonly)
Returns the value of attribute authid.
11 12 13 |
# File 'lib/wampproto/acceptor/request.rb', line 11 def authid @authid end |
#hello ⇒ Object (readonly)
Returns the value of attribute hello.
11 12 13 |
# File 'lib/wampproto/acceptor/request.rb', line 11 def hello @hello end |
#realm ⇒ Object (readonly)
Returns the value of attribute realm.
11 12 13 |
# File 'lib/wampproto/acceptor/request.rb', line 11 def realm @realm end |
Instance Method Details
#authmethod ⇒ Object
17 18 19 |
# File 'lib/wampproto/acceptor/request.rb', line 17 def authmethod @hello.authmethods[0].to_s.intern end |
#public_key ⇒ Object
21 22 23 |
# File 'lib/wampproto/acceptor/request.rb', line 21 def public_key @hello.authextra.fetch(:public_key) end |
#secret ⇒ Object
25 26 27 |
# File 'lib/wampproto/acceptor/request.rb', line 25 def secret nil end |
#ticket ⇒ Object
29 30 31 |
# File 'lib/wampproto/acceptor/request.rb', line 29 def ticket nil end |