public interface SignatureProvider
| Modifier and Type | Method and Description |
|---|---|
byte[] |
sign(byte[] data,
Algorithm algorithm,
byte[] key)
Sign the data using specified algorithm and specified key.
|
boolean |
verify(byte[] data,
Algorithm algorithm,
byte[] signature,
byte[] key)
Verify the data using specified algorithm, signature and specified key.
|
byte[] sign(byte[] data,
Algorithm algorithm,
byte[] key)
throws JsonException
data - the dataalgorithm - the algorithmkey - the keyJsonException - the json exceptionboolean verify(byte[] data,
Algorithm algorithm,
byte[] signature,
byte[] key)
data - the dataalgorithm - the algorithmsignature - the signaturekey - the keyCopyright © 2015. All rights reserved.