public interface CryptoService
| Modifier and Type | Method and Description |
|---|---|
byte[] |
calcSha1(byte[] content) |
byte[] |
calcSha256(byte[] content) |
byte[] |
composeBodySha1(byte[] sign,
X509Certificate c,
byte[] origHash,
Date signingTime) |
byte[] |
composeBodySha256(byte[] sign,
X509Certificate c,
byte[] origHash,
Date signingTime) |
byte[] |
extractSignature(byte[] sign) |
SignCompare |
extractSignCompare(byte[] sign) |
SignCompare2 |
extractSignCompare2(byte[] sign) |
SignPolicyRef |
extractVerifyRefence(byte[] policy) |
byte[] |
hashSignedAttribSha1(byte[] origHash,
Date signingTime,
X509Certificate x509) |
byte[] |
hashSignedAttribSha256(byte[] origHash,
Date signingTime,
X509Certificate x509) |
OperationStatus |
validateSign(byte[] sign,
byte[] content,
Date dtSign,
boolean verifyCRL) |
boolean |
validateSignatureByPolicy(byte[] sign,
byte[] ps) |
boolean |
validateSignatureByPolicy(SignPolicyRef spr,
SignCompare sc) |
OperationStatus |
validateSignByContent(byte[] signCms,
byte[] content,
Date dtSign,
boolean verifyCRL) |
byte[] hashSignedAttribSha1(byte[] origHash,
Date signingTime,
X509Certificate x509)
throws Exception
Exceptionbyte[] hashSignedAttribSha256(byte[] origHash,
Date signingTime,
X509Certificate x509)
throws Exception
Exceptionbyte[] composeBodySha1(byte[] sign,
X509Certificate c,
byte[] origHash,
Date signingTime)
throws Exception
Exceptionbyte[] composeBodySha256(byte[] sign,
X509Certificate c,
byte[] origHash,
Date signingTime)
throws Exception
Exceptionbyte[] calcSha256(byte[] content)
throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionbyte[] calcSha1(byte[] content)
throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionSignCompare extractSignCompare(byte[] sign) throws Exception
ExceptionSignPolicyRef extractVerifyRefence(byte[] policy) throws IOException, ParseException
IOExceptionParseExceptionboolean validateSignatureByPolicy(SignPolicyRef spr, SignCompare sc)
OperationStatus validateSign(byte[] sign, byte[] content, Date dtSign, boolean verifyCRL) throws Exception
ExceptionSignCompare2 extractSignCompare2(byte[] sign) throws Exception
Exceptionboolean validateSignatureByPolicy(byte[] sign,
byte[] ps)
throws Exception
ExceptionOperationStatus validateSignByContent(byte[] signCms, byte[] content, Date dtSign, boolean verifyCRL) throws Exception
ExceptionCopyright © 2020. All rights reserved.