public abstract class AbstractSignatureValidator<SIGNATURE extends Signature> extends Object implements SignatureValidator<SIGNATURE>
Modifier | Constructor and Description |
---|---|
protected |
AbstractSignatureValidator(Class<SIGNATURE> clazz) |
Modifier and Type | Method and Description |
---|---|
boolean |
canValidate(Class<? extends Signature> clazz) |
abstract boolean |
validate(byte[] normalizedSerialization,
byte[] signatureValue,
SIGNATURE signature,
XDIAddress signerXDIAddress) |
boolean |
validateSignature(Signature signature)
Validate a signature.
|
boolean |
validateSignature(Signature signature,
XDIAddress signerXDIAddress)
Validate a signature.
|
public boolean canValidate(Class<? extends Signature> clazz)
canValidate
in interface SignatureValidator<SIGNATURE extends Signature>
public final boolean validateSignature(Signature signature, XDIAddress signerXDIAddress) throws GeneralSecurityException
SignatureValidator
validateSignature
in interface SignatureValidator<SIGNATURE extends Signature>
GeneralSecurityException
public final boolean validateSignature(Signature signature) throws GeneralSecurityException
SignatureValidator
validateSignature
in interface SignatureValidator<SIGNATURE extends Signature>
GeneralSecurityException
public abstract boolean validate(byte[] normalizedSerialization, byte[] signatureValue, SIGNATURE signature, XDIAddress signerXDIAddress) throws GeneralSecurityException
GeneralSecurityException
Copyright © 2017. All rights reserved.