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.
|
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)
Signature
public void update(byte[] foo)
Signature
Signature.update(byte[], int, int)
with offset as 0
and H.length
.public void update(byte[] foo, int off, int len)
Signature
protected byte[] extractSig(byte[] sig)
Copyright © 2009-2013. All Rights Reserved.