public class SignatureHandler extends Object
| 构造器和说明 |
|---|
SignatureHandler(KeyType type,
SignatureScheme scheme) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 © 2021. All rights reserved.