Class: OpenID::Server::DiffieHellmanSHA256ServerSession

Inherits:
DiffieHellmanSHA1ServerSession show all
Defined in:
lib/openid/server.rb

Instance Attribute Summary

Attributes inherited from DiffieHellmanSHA1ServerSession

#consumer_pubkey, #dh, #session_type

Attributes inherited from BaseServerSession

#session_type

Instance Method Summary collapse

Methods inherited from DiffieHellmanSHA1ServerSession

#answer, from_message

Methods inherited from BaseServerSession

#allowed_assoc_type?

Constructor Details

#initialize(*args) ⇒ DiffieHellmanSHA256ServerSession

Returns a new instance of DiffieHellmanSHA256ServerSession.



282
283
284
285
286
287
# File 'lib/openid/server.rb', line 282

def initialize(*args)
  super
  @session_type = "DH-SHA256"
  @hash_func = CryptUtil.method(:sha256)
  @allowed_assoc_types = ["HMAC-SHA256"].freeze
end