public class SignatureRSA extends AbstractSignature
Signature| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ALGORITHM |
| Modifier | Constructor and Description |
|---|---|
|
SignatureRSA() |
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, updatepublic static final String DEFAULT_ALGORITHM
public SignatureRSA()
protected 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 © 2008–2017 The Apache Software Foundation. All rights reserved.