Sha256: 98abe118f982b2d8ba186a5de0ebf15bacca4a28e034b12e4155770453fa37bc

Contents?: true

Size: 366 Bytes

Versions: 10

Compression:

Stored size: 366 Bytes

Contents

# coding: utf-8
# frozen_string_literal: true

class PDF::Reader

  # Security handler for when we don't support the flavour of encryption
  # used in a PDF.
  class UnimplementedSecurityHandler
    def self.supports?(encrypt)
      true
    end

    def decrypt(buf, ref)
      raise PDF::Reader::EncryptedPDFError, "Unsupported encryption style"
    end
  end
end

Version data entries

10 entries across 9 versions & 2 rubygems

Version Path
pdf-reader-2.6.0 lib/pdf/reader/unimplemented_security_handler.rb
pdf-reader-2.5.0 lib/pdf/reader/unimplemented_security_handler.rb
pdf-reader-2.4.2 lib/pdf/reader/unimplemented_security_handler.rb
pdf-reader-2.4.1 lib/pdf/reader/unimplemented_security_handler.rb
pdf-reader-2.4.0 lib/pdf/reader/unimplemented_security_handler.rb
pdf-reader-2.3.0 lib/pdf/reader/unimplemented_security_handler.rb
pdf-reader-2.2.1 lib/pdf/reader/unimplemented_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/unimplemented_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/unimplemented_security_handler.rb
pdf-reader-2.2.0 lib/pdf/reader/unimplemented_security_handler.rb