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, update
public static final String DEFAULT_ALGORITHM
public SignatureRSA()
protected SignatureRSA(String algorithm)
protected int getVerifierSignatureSize()
public void initVerifier(PublicKey key) throws Exception
initVerifier
in interface Signature
initVerifier
in class AbstractSignature
key
- The PublicKey
to be used for verifying signaturesException
- If failed to initializepublic static int getVerifierSignatureSize(RSAKey key)
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.