Sha256: 605c3799cba09a609b953d2ff49831a3d7b6757fe0d4862a79f5060da49f7781

Contents?: true

Size: 278 Bytes

Versions: 10

Compression:

Stored size: 278 Bytes

Contents

# coding: utf-8
# frozen_string_literal: true

class PDF::Reader

  # A null object security handler. Used when a PDF is unencrypted.
  class NullSecurityHandler

    def self.supports?(encrypt)
      encrypt.nil?
    end

    def decrypt(buf, _ref)
      buf
    end
  end
end

Version data entries

10 entries across 9 versions & 2 rubygems

Version Path
pdf-reader-2.6.0 lib/pdf/reader/null_security_handler.rb
pdf-reader-2.5.0 lib/pdf/reader/null_security_handler.rb
pdf-reader-2.4.2 lib/pdf/reader/null_security_handler.rb
pdf-reader-2.4.1 lib/pdf/reader/null_security_handler.rb
pdf-reader-2.4.0 lib/pdf/reader/null_security_handler.rb
pdf-reader-2.3.0 lib/pdf/reader/null_security_handler.rb
pdf-reader-2.2.1 lib/pdf/reader/null_security_handler.rb
embulk-input-druginfo_interview_form-0.1.0 vendor/bundle/ruby/2.4.0/gems/pdf-reader-2.2.0/lib/pdf/reader/null_security_handler.rb
embulk-input-druginfo_interview_form-0.1.0 vendor/bundle/ruby/2.5.0/gems/pdf-reader-2.2.0/lib/pdf/reader/null_security_handler.rb
pdf-reader-2.2.0 lib/pdf/reader/null_security_handler.rb