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(SessionContext session,
PublicKey key) |
boolean |
verify(SessionContext session,
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(SessionContext session, PublicKey key) throws Exception
initVerifier in interface SignatureinitVerifier in class AbstractSignaturesession - The SessionContext for calling this method - may
be null if not called within a session contextkey - The PublicKey to be used for verifying signaturesException - If failed to initializepublic static int getVerifierSignatureSize(RSAKey key)
public boolean verify(SessionContext session, byte[] sig) throws Exception
Signaturesession - The SessionContext for calling this method - may
be null if not called within a session contextsig - The signed datatrue if signature is validException - If failed to extract signed data for validationCopyright © 2018–2020 The Apache Software Foundation. All rights reserved.