Class: OpenID::Server::BaseServerSession

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(session_type, allowed_assoc_types) ⇒ BaseServerSession

Returns a new instance of BaseServerSession.



160
161
162
163
# File 'lib/openid/server.rb', line 160

def initialize(session_type, allowed_assoc_types)
  @session_type = session_type
  @allowed_assoc_types = allowed_assoc_types.dup.freeze
end

Instance Attribute Details

#session_typeObject (readonly)

Returns the value of attribute session_type.



158
159
160
# File 'lib/openid/server.rb', line 158

def session_type
  @session_type
end

Instance Method Details

#allowed_assoc_type?(typ) ⇒ Boolean

Returns:

  • (Boolean)


165
166
167
# File 'lib/openid/server.rb', line 165

def allowed_assoc_type?(typ)
  @allowed_assoc_types.member?(typ)
end