public final class DigestComputingSubscriber extends Object implements org.reactivestreams.Subscriber<ByteBuffer>
| Constructor and Description |
|---|
DigestComputingSubscriber(MessageDigest messageDigest) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<byte[]> |
digestBytes() |
static DigestComputingSubscriber |
forSha256() |
void |
onComplete() |
void |
onError(Throwable throwable) |
void |
onNext(ByteBuffer byteBuffer) |
void |
onSubscribe(org.reactivestreams.Subscription subscription) |
public DigestComputingSubscriber(MessageDigest messageDigest)
public void onSubscribe(org.reactivestreams.Subscription subscription)
onSubscribe in interface org.reactivestreams.Subscriber<ByteBuffer>public void onNext(ByteBuffer byteBuffer)
onNext in interface org.reactivestreams.Subscriber<ByteBuffer>public void onError(Throwable throwable)
onError in interface org.reactivestreams.Subscriber<ByteBuffer>public void onComplete()
onComplete in interface org.reactivestreams.Subscriber<ByteBuffer>public CompletableFuture<byte[]> digestBytes()
public static DigestComputingSubscriber forSha256()
Copyright © 2021. All rights reserved.