Class: Wampproto::Acceptor::AuthenticateRequest

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

Overview

AuthenticateRequest

Instance Attribute Summary collapse

Attributes inherited from Request

#authextra, #authid, #hello, #realm

Instance Method Summary collapse

Methods inherited from Request

#authmethod, #public_key

Constructor Details

#initialize(authenticate, hello_request) ⇒ AuthenticateRequest

Returns a new instance of AuthenticateRequest.



41
42
43
44
45
# File 'lib/wampproto/acceptor/request.rb', line 41

def initialize(authenticate, hello_request)
  @authenticate = authenticate
  @hello_request = hello_request
  super(hello_request.hello)
end

Instance Attribute Details

#authenticateObject (readonly)

Returns the value of attribute authenticate.



39
40
41
# File 'lib/wampproto/acceptor/request.rb', line 39

def authenticate
  @authenticate
end

Instance Method Details

#secretObject



51
52
53
# File 'lib/wampproto/acceptor/request.rb', line 51

def secret
  @authenticate.signature
end

#ticketObject



47
48
49
# File 'lib/wampproto/acceptor/request.rb', line 47

def ticket
  @authenticate.signature
end