public class RsaSignatureValidator extends Object implements SignatureValidator
| Modifier and Type | Field and Description |
|---|---|
protected SignatureAlgorithm |
alg |
protected Key |
key |
| Constructor and Description |
|---|
RsaSignatureValidator(SignatureAlgorithm alg,
Key key) |
| Modifier and Type | Method and Description |
|---|---|
protected Signature |
createSignatureInstance() |
boolean |
isValid(byte[] data,
byte[] signature) |
protected Signature |
newSignatureInstance() |
protected void |
setParameter(Signature sig,
PSSParameterSpec spec) |
protected final SignatureAlgorithm alg
protected final Key key
public RsaSignatureValidator(SignatureAlgorithm alg, Key key)
public boolean isValid(byte[] data,
byte[] signature)
isValid in interface SignatureValidatorprotected Signature createSignatureInstance()
protected Signature newSignatureInstance()
protected void setParameter(Signature sig, PSSParameterSpec spec)
Copyright © 2014. All rights reserved.