public interface Signature
| Modifier and Type | Method and Description |
|---|---|
void |
init(java.security.PublicKey pubkey,
java.security.PrivateKey prvkey)
Initialize this signature with the given public key and private key.
|
byte[] |
sign()
Compute the signature
|
void |
update(byte[] H,
int off,
int len)
Update the computed signature with the given data
|
boolean |
verify(byte[] sig)
Verify against the given signature
|
void init(java.security.PublicKey pubkey,
java.security.PrivateKey prvkey)
throws java.lang.Exception
pubkey - prvkey - java.lang.Exceptionvoid update(byte[] H,
int off,
int len)
throws java.lang.Exception
H - off - len - java.lang.Exceptionboolean verify(byte[] sig)
throws java.lang.Exception
sig - java.lang.Exceptionbyte[] sign()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.