public class RSASignatureProvider extends Object implements SignatureProvider
| Constructor and Description |
|---|
RSASignatureProvider() |
| 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)
SignatureProvidersign in interface SignatureProviderdata - 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)
SignatureProviderverify in interface SignatureProviderdata - the dataalgorithm - the algorithmsignature - the signaturekey - the keySignatureProvider.verify(byte[], org.picketlink.json.jose.crypto.Algorithm, byte[],
byte[])Copyright © 2021. All rights reserved.