Bu, dökümanın eski bir sürümüdür!
Signature on iOS
Basic Electronic Signature (BES) format is supported on iOS devices.
Notes
Capabilities
Signatures can be created with type CAdES-BES.
Generated signature is saved with name “sig.der” under “Documents” directory of the application.
License is checked. You are not allowed to sign without a valid license.
Constraints
The document that is going to be signed is digested using SHA-256.
Created signature will have SigningCertificateV2.
RSA-with-SHA256 is used as signing algorithm.
(Card reader restriction).
Usage
Latest version of Qt (5.2.1 and later) must be installed.
Required content must be added to plist file. (“iTunes file sharing” to reach files under Documents
folder from iTunes and for the card reader access “external accessory”)
License
Lisans uygulamanın altındaki 'Documents' dizinine konulmalıdır.
İsmi lisans.dat olmalıdır.
Dizine dosya ekleme işlemi iTunes ile yapılabilir, yalnız öncesinde plist'te “iTunes file sharing” aktif edilmelidir.
Kodun Kullanımı
[NSThread detachNewThreadSelector:@selector(login:) toTarget:(id)self withObject:nil];
SmartCardManager smartCardManager;
smartCardManager.openSession();
ECertificate cert = smartCardManager.getSignatureCertificate();
SignatureContainer *container = new CMSContainer();
Signature *signature = container->createSignature(cert);
Signable *data = new SignableBytes(dataBytes);
signature->addContent(data, true);
BaseSigner *signer = smartCardManager.getSigner("12345", cert);
signature->sign(signer);
en/esya/ios/ios.1397113558.txt.gz · Son değiştirilme: 2014/04/10 07:05 Değiştiren: Süleyman Uslu