Class: ActionDispatch::Cookies::SignedCookieJar

Inherits:
AbstractCookieJar show all
Includes:
SerializedCookieJars
Defined in:
actionpack/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



537
538
539
540
541
# File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 537

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