public class SignatureHandler extends Object
| Constructor and Description |
|---|
SignatureHandler(KeyType type,
SignatureScheme scheme) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
generateSignature(PrivateKey priKey,
byte[] msg,
AlgorithmParameterSpec param) |
boolean |
verifySignature(PublicKey pubKey,
byte[] msg,
byte[] sig) |
public SignatureHandler(KeyType type, SignatureScheme scheme) throws Exception
Exceptionpublic byte[] generateSignature(PrivateKey priKey, byte[] msg, AlgorithmParameterSpec param) throws Exception
ExceptionCopyright © 2020. All rights reserved.