Class: Aws::S3::Encryption::IOAuthDecrypter Private
- Inherits:
-
Object
- Object
- Aws::S3::Encryption::IOAuthDecrypter
- Defined in:
- lib/aws-sdk-resources/services/s3/encryption/io_auth_decrypter.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #finalize ⇒ Object private
-
#initialize(options = {}) ⇒ IOAuthDecrypter
constructor
private
A new instance of IOAuthDecrypter.
- #io ⇒ Object private
- #write(chunk) ⇒ Object private
Constructor Details
#initialize(options = {}) ⇒ IOAuthDecrypter
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of IOAuthDecrypter.
17 18 19 20 21 |
# File 'lib/aws-sdk-resources/services/s3/encryption/io_auth_decrypter.rb', line 17 def initialize( = {}) @decrypter = IODecrypter.new([:cipher], [:io]) @max_bytes = [:encrypted_content_length] @bytes_written = 0 end |
Instance Method Details
#finalize ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
29 30 31 |
# File 'lib/aws-sdk-resources/services/s3/encryption/io_auth_decrypter.rb', line 29 def finalize @decrypter.finalize end |
#io ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
33 34 35 |
# File 'lib/aws-sdk-resources/services/s3/encryption/io_auth_decrypter.rb', line 33 def io @decrypter.io end |
#write(chunk) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
23 24 25 26 27 |
# File 'lib/aws-sdk-resources/services/s3/encryption/io_auth_decrypter.rb', line 23 def write(chunk) chunk = truncate_chunk(chunk) @bytes_written += chunk.bytesize @decrypter.write(chunk) end |