public class SignatureDSA extends AbstractSignature
Signature| Modifier and Type | Field and Description |
|---|---|
static int |
DSA_SIGNATURE_LENGTH |
static int |
MAX_SIGNATURE_VALUE_LENGTH |
signature| Modifier | Constructor and Description |
|---|---|
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
|
extractEncodedSignature, getAlgorithm, initSigner, initVerifier, toString, update, updatepublic static final int DSA_SIGNATURE_LENGTH
public static final int MAX_SIGNATURE_VALUE_LENGTH
protected SignatureDSA(String algorithm)
public byte[] sign()
throws Exception
SignatureException - If failed to calculate the signaturepublic static void putBigInteger(BigInteger value, byte[] result, int offset)
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.