public abstract class SignatureRSA extends AbstractSignature
Signature
Modifier and Type | Field and Description |
---|---|
static java.util.NavigableSet<java.lang.String> |
SUPPORTED_KEY_TYPES |
private int |
verifierSignatureSize |
Modifier | Constructor and Description |
---|---|
protected |
SignatureRSA(java.lang.String algorithm) |
Modifier and Type | Method and Description |
---|---|
protected int |
getVerifierSignatureSize() |
static int |
getVerifierSignatureSize(java.security.interfaces.RSAKey key) |
void |
initVerifier(SessionContext session,
java.security.PublicKey key) |
boolean |
verify(SessionContext session,
byte[] sig)
Verify against the given signature
|
doInitSignature, doVerify, extractEncodedSignature, extractEncodedSignature, getAlgorithm, getSignature, initSigner, sign, toString, update
public static final java.util.NavigableSet<java.lang.String> SUPPORTED_KEY_TYPES
private int verifierSignatureSize
protected int getVerifierSignatureSize()
public void initVerifier(SessionContext session, java.security.PublicKey key) throws java.lang.Exception
initVerifier
in interface Signature
initVerifier
in class AbstractSignature
session
- The SessionContext
for calling this method - may be null
if not called within a
session contextkey
- The PublicKey
to be used for verifying signaturesjava.lang.Exception
- If failed to initializepublic static int getVerifierSignatureSize(java.security.interfaces.RSAKey key)
public boolean verify(SessionContext session, byte[] sig) throws java.lang.Exception
Signature
session
- The SessionContext
for calling this method - may be null
if not called within a
session contextsig
- The signed datatrue
if signature is validjava.lang.Exception
- If failed to extract signed data for validation