Class: Wampproto::Acceptor::Request

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/wampproto/acceptor/request.rb

Overview

Request object sent for authentication

Direct Known Subclasses

AuthenticateRequest

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#authextraObject (readonly)

Returns the value of attribute authextra.



11
12
13
# File 'lib/wampproto/acceptor/request.rb', line 11

def authextra
  @authextra
end

#authidObject (readonly)

Returns the value of attribute authid.



11
12
13
# File 'lib/wampproto/acceptor/request.rb', line 11

def authid
  @authid
end

#helloObject (readonly)

Returns the value of attribute hello.



11
12
13
# File 'lib/wampproto/acceptor/request.rb', line 11

def hello
  @hello
end

#realmObject (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

#authmethodObject



17
18
19
# File 'lib/wampproto/acceptor/request.rb', line 17

def authmethod
  @hello.authmethods[0].to_s.intern
end

#public_keyObject



21
22
23
# File 'lib/wampproto/acceptor/request.rb', line 21

def public_key
  @hello.authextra.fetch(:public_key)
end

#secretObject



25
26
27
# File 'lib/wampproto/acceptor/request.rb', line 25

def secret
  nil
end

#ticketObject



29
30
31
# File 'lib/wampproto/acceptor/request.rb', line 29

def ticket
  nil
end