public interface Signer
Modifier and Type | Method and Description |
---|---|
void |
initSign(byte[] privateKeyBytes)
Initialize this object for signing.
|
byte[] |
sign(byte[] data)
Sign the given data.
|
void initSign(byte[] privateKeyBytes) throws SignatureException
privateKeyBytes
- the PCKS8 DER encoded private key bytes.SignatureException
- if an error occurs.byte[] sign(byte[] data) throws SignatureException
data
- the data to sign.SignatureException
- if the calculation of the signature failed.