Class DigestComputingSubscriber
- java.lang.Object
-
- software.amazon.awssdk.auth.signer.internal.DigestComputingSubscriber
-
- All Implemented Interfaces:
org.reactivestreams.Subscriber<ByteBuffer>
public final class DigestComputingSubscriber extends Object implements org.reactivestreams.Subscriber<ByteBuffer>
-
-
Constructor Summary
Constructors Constructor Description DigestComputingSubscriber(MessageDigest messageDigest, SdkChecksum sdkChecksum)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<byte[]>
digestBytes()
static DigestComputingSubscriber
forSha256()
static DigestComputingSubscriber
forSha256(SdkChecksum sdkChecksum)
void
onComplete()
void
onError(Throwable throwable)
void
onNext(ByteBuffer byteBuffer)
void
onSubscribe(org.reactivestreams.Subscription subscription)
-
-
-
Constructor Detail
-
DigestComputingSubscriber
public DigestComputingSubscriber(MessageDigest messageDigest, SdkChecksum sdkChecksum)
-
-
Method Detail
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription subscription)
- Specified by:
onSubscribe
in interfaceorg.reactivestreams.Subscriber<ByteBuffer>
-
onNext
public void onNext(ByteBuffer byteBuffer)
- Specified by:
onNext
in interfaceorg.reactivestreams.Subscriber<ByteBuffer>
-
onError
public void onError(Throwable throwable)
- Specified by:
onError
in interfaceorg.reactivestreams.Subscriber<ByteBuffer>
-
onComplete
public void onComplete()
- Specified by:
onComplete
in interfaceorg.reactivestreams.Subscriber<ByteBuffer>
-
digestBytes
public CompletableFuture<byte[]> digestBytes()
-
forSha256
public static DigestComputingSubscriber forSha256()
-
forSha256
public static DigestComputingSubscriber forSha256(SdkChecksum sdkChecksum)
-
-