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.



272
273
274
275
276
277
# File 'lib/openid/server.rb', line 272

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