public final class DefaultHmacSignature extends Object implements HmacSignature
Constructor and Description |
---|
DefaultHmacSignature(Mac mac,
String userId) |
Modifier and Type | Method and Description |
---|---|
InputStream |
filterInput(InputStream stream) |
OutputStream |
filterOutput(OutputStream stream) |
String |
generateSignature() |
String |
getUserId() |
public InputStream filterInput(InputStream stream)
filterInput
in interface HmacSignature
stream
- an InputStream which data should pass through signature calculationpublic OutputStream filterOutput(OutputStream stream)
filterOutput
in interface HmacSignature
stream
- an OutputStream which data should pass through signature calculationpublic String generateSignature()
generateSignature
in interface HmacSignature
public String getUserId()
getUserId
in interface HmacSignature
Copyright © 2017. All rights reserved.