public class GBT35275ValidateContainer extends Object implements SignedDataValidateContainer
b) 签名类型为数字签名且签名算法使用SM2时,签名值数据应遵循 GB/T 35275
数字签名验证容器
| 构造器和说明 |
|---|
GBT35275ValidateContainer() |
public void validate(org.ofdrw.core.signatures.SigType type,
String alg,
byte[] tbsContent,
byte[] signedValue)
throws InvalidSignedValueException,
GeneralSecurityException
SignedDataValidateContainer如果验证不通过请抛出异常
validate 在接口中 SignedDataValidateContainertype - 电子签名类型(Sign/Seal)alg - 签名算法名称或OIDtbsContent - 待签章内容signedValue - 电子签章数据或签名值(SignedValue.xml文件内容)InvalidSignedValueException - 电子签章数据失效GeneralSecurityException - 运算过程中异常Copyright © 2022. All rights reserved.