public class HMACSignatureProvider extends Object implements 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.
|
public byte[] sign(byte[] data, Algorithm algorithm, byte[] key)
SignatureProvider
sign
in interface SignatureProvider
data
- the dataalgorithm
- the algorithmkey
- the keySignatureProvider.sign(byte[], org.picketlink.json.jose.crypto.Algorithm, byte[])
public boolean verify(byte[] data, Algorithm algorithm, byte[] signature, byte[] key)
SignatureProvider
verify
in interface SignatureProvider
data
- the dataalgorithm
- the algorithmsignature
- the signaturekey
- the keySignatureProvider.verify(byte[], org.picketlink.json.jose.crypto.Algorithm, byte[], byte[])
Copyright © 2019. All rights reserved.