public abstract class AbstractSignature extends Object implements Signature
Signature that implements common functionality.| Modifier and Type | Field and Description |
|---|---|
protected String |
algorithm |
protected Signature |
signature |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSignature(String algorithm) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
extractSig(byte[] sig) |
void |
init(PublicKey publicKey,
PrivateKey privateKey)
Initialize this signature with the given public key and private key.
|
byte[] |
sign()
Compute the signature.
|
void |
update(byte[] foo)
Convenience method, same as calling
Signature.update(byte[], int, int) with offset as 0 and H.length. |
void |
update(byte[] foo,
int off,
int len)
Update the computed signature with the given data.
|
protected AbstractSignature(String algorithm)
public void init(PublicKey publicKey, PrivateKey privateKey)
Signaturepublic void update(byte[] foo)
SignatureSignature.update(byte[], int, int) with offset as 0 and H.length.public void update(byte[] foo,
int off,
int len)
Signaturepublic byte[] sign()
Signatureprotected byte[] extractSig(byte[] sig)
Copyright © 2009–2014. All rights reserved.