public abstract class SignatureRSA extends AbstractSignature
Signature| Modifier and Type | Field and Description |
|---|---|
static NavigableSet<String> |
SUPPORTED_KEY_TYPES |
| Modifier | Constructor and Description |
|---|---|
protected |
SignatureRSA(String algorithm,
String sshAlgorithmName) |
| Modifier and Type | Method and Description |
|---|---|
String |
getSshAlgorithmName(String algo) |
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, extractEncodedSignature, getAlgorithm, getSignature, initSigner, sign, toString, updatepublic static final NavigableSet<String> SUPPORTED_KEY_TYPES
public String getSshAlgorithmName(String algo)
algo - - the negotiated valueprotected 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–2021 The Apache Software Foundation. All rights reserved.