Class: ActionDispatch::Cookies::SignedCookieJar

Inherits:
AbstractCookieJar show all
Includes:
SerializedCookieJars
Defined in:
lib/action_dispatch/middleware/cookies.rb

Overview

:nodoc:

Direct Known Subclasses

UpgradeLegacySignedCookieJar

Constant Summary

Constants included from SerializedCookieJars

ActionDispatch::Cookies::SerializedCookieJars::MARSHAL_SIGNATURE

Instance Method Summary collapse

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.signed_cookie_salt)
  @verifier = ActiveSupport::MessageVerifier.new(secret, digest: digest, serializer: ActiveSupport::MessageEncryptor::NullSerializer)
end