Class: PDF::Reader::UnimplementedSecurityHandler
- Inherits:
-
Object
- Object
- PDF::Reader::UnimplementedSecurityHandler
- Defined in:
- lib/pdf/reader/unimplemented_security_handler.rb
Overview
Security handler for when we don’t support the flavour of encryption used in a PDF.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.supports?(encrypt) ⇒ Boolean
10 11 12 |
# File 'lib/pdf/reader/unimplemented_security_handler.rb', line 10 def self.supports?(encrypt) true end |
Instance Method Details
#decrypt(buf, ref) ⇒ Object
14 15 16 |
# File 'lib/pdf/reader/unimplemented_security_handler.rb', line 14 def decrypt(buf, ref) raise PDF::Reader::EncryptedPDFError, "Unsupported encryption style" end |