Module: Origami::Encryption::EncryptedObject
- Included in:
- EncryptedStream, EncryptedString
- Defined in:
- lib/origami/encryption.rb
Overview
Module for encrypted PDF objects.
Instance Attribute Summary collapse
-
#algorithm ⇒ Object
writeonly
Sets the attribute algorithm.
-
#decrypted ⇒ Object
Returns the value of attribute decrypted.
-
#encryption_handler ⇒ Object
writeonly
Sets the attribute encryption_handler.
-
#encryption_key ⇒ Object
writeonly
:nodoc.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#algorithm=(value) ⇒ Object (writeonly)
Sets the attribute algorithm
400 401 402 |
# File 'lib/origami/encryption.rb', line 400 def algorithm=(value) @algorithm = value end |
#decrypted ⇒ Object
Returns the value of attribute decrypted.
402 403 404 |
# File 'lib/origami/encryption.rb', line 402 def decrypted @decrypted end |
#encryption_handler=(value) ⇒ Object (writeonly)
Sets the attribute encryption_handler
401 402 403 |
# File 'lib/origami/encryption.rb', line 401 def encryption_handler=(value) @encryption_handler = value end |
#encryption_key=(value) ⇒ Object (writeonly)
:nodoc
399 400 401 |
# File 'lib/origami/encryption.rb', line 399 def encryption_key=(value) @encryption_key = value end |
Class Method Details
.extended(obj) ⇒ Object
404 405 406 |
# File 'lib/origami/encryption.rb', line 404 def self.extended(obj) obj.decrypted = false end |
Instance Method Details
#post_build ⇒ Object
408 409 410 411 412 |
# File 'lib/origami/encryption.rb', line 408 def post_build encrypt! super end |