Bu sayfanın seçili sürümü ile mevcut sürümü arasındaki farkları gösterir.
en:esya:smartcard:smartcardmanager [2013/09/12 08:13] Dindar Öz oluşturuldu |
en:esya:smartcard:smartcardmanager [2013/09/12 08:42] (mevcut) Dindar Öz |
||
---|---|---|---|
Satır 1: | Satır 1: | ||
===== SmartCardManager ===== | ===== SmartCardManager ===== | ||
- | Dağıtılan paket içinde örnek kodlar bölümünde ''SmartCardManager'' sınıfını bulabilirsiniz. Kendinize göre uyarlayabilmeniz için açık kaynak olarak dağıtılmaktadır. Bu sınıf ile temel imza işlemlerinizi gerçekleştirebilirsiniz. Sınıf aşağıdaki işlemleri sağlayabilir. | + | You can find the class ''SmartCardManager'' in the sample codes section of the distributed package. This class is published as open source in order for you to customize it according to your own needs. Basic signature operations can be performed by this class which has the following functions: |
- | -Sisteme bir kart takılı ve kartta belirtilen özellikte bir sertifika varsa doğrudan bu kart ve bu sertifika üzerinden işlem yapar. | + | -It performs operations with the certificate in the smartcard automatically if there is only one smartcard and one certificate in the card. |
- | -Birden fazla kart takılı ise kullanıcıya kart seçtirir. Belirtilen özellikte birden fazla sertifika yüklü ise kullanıcıya sertifika seçtirir. | + | -It prompts the user to select card if more than one card are plugged in. If there are multiple certificates in the card then it prompts certificate selection. |
- | -Eğer APDU ile karta erişilmek isteniyorsa ve kart APDU ile erişimi destekliyorsa APDU ile karta erişim sağlar. C# tarafında APDU erişimi olmadığından sadece pkcs11 erişimi sağlanmaktadır. | + | -If APDU communication is supprted by the card, it can use APDU commands. C# API does not support APDU and only uses pkcs11 to access smartcard. |
- | -Aynı kart ile yapılan imzalama işlemlerinde, sertifikayı ve imzacıyı bellekten çekerek hızlanma sağlar. | + | -Repetitive operations with the samecard is performed fast tahnks to the retrieval of the certificate from memory. |
- | -Bir kart ile işlem yaptıktan sonra eğer yeni bir kart takılmışsa veya işlem yapılan kart çıkartılmışsa kart ve sertifika seçme işlemlerini tekrarlar. | + | -After a smartcard operation, if the card is taken out then card and certificate selection are reprompted upon next card operation. |
- | Örnek bir kullanım aşağıdaki gibi olabilir. | + | |
+ | A sample usage is as follows: | ||
<sxh java;title:Java> | <sxh java;title:Java> | ||
Satır 31: | Satır 32: | ||
</sxh> | </sxh> | ||
- | Yeni bir kartın takılıp takılmadığı ve seçili kartın çıkartılıp çıkartılmadığı ''getInstance()'' methodu içinde kontrol edilmektedir. Her imzalama işleminden önce ''SmartCardManager'' nesnesini ''getInstance()'' methodu ile alınız. Yukarıdaki örnek kodda işlemler kısa zamanda ardışık olarak yapıldığından nesne bir kere alınmış ve o nesne üzerinden işlem yapılmıştır. | + | The method ''getInstance()'' checks if a new card has been plugged in or the existing card has been taken out. Before every signing operation call the method ''getInstance()'' of ''SmartCardManager''. In the sample code above, the operations are sequentially in a short period of time, the object is retrieved just once. |
+ |