public class SignatureDSA extends AbstractSignature
Signature
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ALGORITHM |
static int |
DSA_SIGNATURE_LENGTH |
static int |
MAX_SIGNATURE_VALUE_LENGTH |
Modifier | Constructor and Description |
---|---|
|
SignatureDSA() |
protected |
SignatureDSA(String algorithm) |
Modifier and Type | Method and Description |
---|---|
static void |
putBigInteger(BigInteger value,
byte[] result,
int offset) |
byte[] |
sign()
Compute the signature
|
boolean |
verify(byte[] sig)
Verify against the given signature
|
doInitSignature, doVerify, extractEncodedSignature, getAlgorithm, getSignature, initSigner, initVerifier, toString, update
public static final String DEFAULT_ALGORITHM
public static final int DSA_SIGNATURE_LENGTH
public static final int MAX_SIGNATURE_VALUE_LENGTH
public SignatureDSA()
protected SignatureDSA(String algorithm)
public byte[] sign() throws Exception
Signature
sign
in interface Signature
sign
in class AbstractSignature
Exception
- If failed to calculate the signaturepublic static void putBigInteger(BigInteger value, byte[] result, int offset)
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.