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, update
public static final int DSA_SIGNATURE_LENGTH
public static final int MAX_SIGNATURE_VALUE_LENGTH
protected SignatureDSA(String algorithm)
public byte[] sign() throws Exception
Signature
Exception
- If failed to calculate the signaturepublic static void putBigInteger(BigInteger value, byte[] result, int offset)
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.