public abstract class AlgorithmHandlerAdapter extends Object implements AlgorithmHandler
| 构造器和说明 |
|---|
AlgorithmHandlerAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
AlgorithmHandler |
load(String info)
加载加解密信息
|
AlgorithmHandler |
prepare(Crypto crypto)
准备加解密的必要配置,如密钥
|
String |
sign()
生成签名
|
boolean |
verify(String sign)
验证签名与内容
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecrypt, encrypt, fetchSwitch, loadKeyChainpublic AlgorithmHandler load(String info)
AlgorithmHandlerload 在接口中 AlgorithmHandlerinfo - 需要加密/解密的内容public AlgorithmHandler prepare(Crypto crypto)
AlgorithmHandlerprepare 在接口中 AlgorithmHandlerpublic boolean verify(String sign) throws GeneralSecurityException
AlgorithmHandlerverify 在接口中 AlgorithmHandlerGeneralSecurityExceptionpublic String sign() throws GeneralSecurityException
AlgorithmHandlersign 在接口中 AlgorithmHandlerGeneralSecurityExceptionCopyright © 2022. All rights reserved.