Class CipherPublisher

  • All Implemented Interfaces:
    org.reactivestreams.Publisher<ByteBuffer>, software.amazon.awssdk.core.async.SdkPublisher<ByteBuffer>

    public class CipherPublisher
    extends Object
    implements software.amazon.awssdk.core.async.SdkPublisher<ByteBuffer>
    A Publisher which encrypts and decrypts data as it passes through using a configured Cipher instance.
    • Constructor Detail

      • CipherPublisher

        public CipherPublisher​(software.amazon.awssdk.core.async.SdkPublisher<ByteBuffer> wrappedPublisher,
                               Long contentLength,
                               long[] range,
                               String contentRange,
                               int cipherTagLengthBits,
                               CryptographicMaterials materials,
                               byte[] iv)
    • Method Detail

      • subscribe

        public void subscribe​(org.reactivestreams.Subscriber<? super ByteBuffer> subscriber)
        Specified by:
        subscribe in interface org.reactivestreams.Publisher<ByteBuffer>