Class: ActionDispatch::Cookies::SignedCookieJar
- Inherits:
-
AbstractCookieJar
- Object
- AbstractCookieJar
- ActionDispatch::Cookies::SignedCookieJar
- Includes:
- SerializedCookieJars
- Defined in:
- lib/action_dispatch/middleware/cookies.rb
Overview
:nodoc:
Direct Known Subclasses
Constant Summary
Constants included from SerializedCookieJars
ActionDispatch::Cookies::SerializedCookieJars::MARSHAL_SIGNATURE
Instance Method Summary collapse
-
#initialize(parent_jar) ⇒ SignedCookieJar
constructor
A new instance of SignedCookieJar.
Methods inherited from AbstractCookieJar
Methods included from ChainedCookieJars
#encrypted, #permanent, #signed, #signed_or_encrypted
Constructor Details
#initialize(parent_jar) ⇒ SignedCookieJar
Returns a new instance of SignedCookieJar.
542 543 544 545 546 |
# File 'lib/action_dispatch/middleware/cookies.rb', line 542 def initialize(parent_jar) super secret = key_generator.generate_key(request.) @verifier = ActiveSupport::MessageVerifier.new(secret, digest: digest, serializer: ActiveSupport::MessageEncryptor::NullSerializer) end |