method

parse

rails latest stable - Class: ActionDispatch::Cookies::EncryptedCookieJar

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.1.7) is shown here.

parse(name, encrypted_message)
private

No documentation available.

# File actionpack/lib/action_dispatch/middleware/cookies.rb, line 585
        def parse(name, encrypted_message)
          deserialize name, @encryptor.decrypt_and_verify(encrypted_message)
        rescue ActiveSupport::MessageVerifier::InvalidSignature, ActiveSupport::MessageEncryptor::InvalidMessage
          nil
        end