Sha256: 3b7769ac582ce88e6ff3d20b8e491587dcb457bc426b47a2399d25ca2d5e9505

Contents?: true

Size: 336 Bytes

Versions: 2

Compression:

Stored size: 336 Bytes

Contents

# coding: utf-8

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

2 entries across 2 versions & 1 rubygems

Version Path
pdf-reader-2.1.0 lib/pdf/reader/unimplemented_security_handler.rb
pdf-reader-2.0.0 lib/pdf/reader/unimplemented_security_handler.rb