Bu sayfanın seçili sürümü ile mevcut sürümü arasındaki farkları gösterir.
en:esya:xades:kod-imza-atma-dogrulama [2013/09/11 06:02] Dindar Öz |
en:esya:xades:kod-imza-atma-dogrulama [2013/09/11 06:03] (mevcut) Dindar Öz |
||
---|---|---|---|
Satır 38: | Satır 38: | ||
- | <sxh java> XMLSignature signature = XMLSignature.parse( new FileDocument(new File(FILE_NAME)), new Context(BASE_DIR)) ; //noparams, use the certificate in key info ValidationResult result = signature.verify(); </sxh> Note that ,only the outermost signature is verified in this example. For the verification of a counter signature, see ''validation.Validation''. You can perform the verification of parallel signatures by using the method ''validateParallel'' of the same class. | + | <sxh java> |
+ | XMLSignature signature = XMLSignature.parse( new FileDocument(new File(FILE_NAME)), new Context(BASE_DIR)) ; | ||
+ | // no params, use the certificate in key info | ||
+ | ValidationResult result = signature.verify(); | ||
+ | </sxh> | ||
+ | Note that ,only the outermost signature is verified in this example. For the verification of a counter signature, see ''validation.Validation''. You can perform the verification of parallel signatures by using the method ''validateParallel'' of the same class. | ||
===== Smartcard Operations ===== | ===== Smartcard Operations ===== | ||
For detailed information about Smartcard API, see smartcard user manual. In order to create signature by using smartcard an object of the corresponding ''BaseSigner'' child class must be created. Since the private key is stored in the smartcard and can not be extracted, there is no parameter used for the private key. The class ''SmartCardManager'' provides basic functionality for smartcard operations. | For detailed information about Smartcard API, see smartcard user manual. In order to create signature by using smartcard an object of the corresponding ''BaseSigner'' child class must be created. Since the private key is stored in the smartcard and can not be extracted, there is no parameter used for the private key. The class ''SmartCardManager'' provides basic functionality for smartcard operations. | ||
// | // |