public abstract class SignatureRSA extends AbstractSignature
Signature| Modifier | Constructor and Description |
|---|---|
protected |
SignatureRSA(String algorithm) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getVerifierSignatureSize() |
static int |
getVerifierSignatureSize(RSAKey key) |
void |
initVerifier(PublicKey key) |
boolean |
verify(byte[] sig)
Verify against the given signature
|
doInitSignature, doVerify, extractEncodedSignature, getAlgorithm, getSignature, initSigner, sign, toString, updateprotected SignatureRSA(String algorithm)
protected int getVerifierSignatureSize()
public void initVerifier(PublicKey key) throws Exception
initVerifier in interface SignatureinitVerifier in class AbstractSignaturekey - The PublicKey to be used for verifying signaturesException - If failed to initializepublic static int getVerifierSignatureSize(RSAKey key)
Copyright © 2018–2019 The Apache Software Foundation. All rights reserved.