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) |
bluecrystal.domain.SignCompare |
extractSignCompare(byte[] sign) |
bluecrystal.domain.SignCompare2 |
extractSignCompare2(byte[] sign) |
bluecrystal.domain.SignPolicyRef |
extractVerifyRefence(byte[] policy) |
byte[] |
hashSignedAttribSha1(byte[] origHash,
Date signingTime,
X509Certificate x509) |
byte[] |
hashSignedAttribSha256(byte[] origHash,
Date signingTime,
X509Certificate x509) |
int |
validateSign(byte[] sign,
byte[] content,
Date dtSign,
boolean verifyCRL) |
boolean |
validateSignatureByPolicy(byte[] sign,
byte[] ps) |
boolean |
validateSignatureByPolicy(bluecrystal.domain.SignPolicyRef spr,
bluecrystal.domain.SignCompare sc) |
int |
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
NoSuchAlgorithmExceptionbluecrystal.domain.SignCompare extractSignCompare(byte[] sign)
throws Exception
Exceptionbluecrystal.domain.SignPolicyRef extractVerifyRefence(byte[] policy)
throws IOException,
ParseException
IOExceptionParseExceptionboolean validateSignatureByPolicy(bluecrystal.domain.SignPolicyRef spr,
bluecrystal.domain.SignCompare sc)
int validateSign(byte[] sign,
byte[] content,
Date dtSign,
boolean verifyCRL)
throws Exception
Exceptionbluecrystal.domain.SignCompare2 extractSignCompare2(byte[] sign)
throws Exception
Exceptionboolean validateSignatureByPolicy(byte[] sign,
byte[] ps)
throws Exception
ExceptionCopyright © 2016. All rights reserved.