Bu sayfanın seçili sürümü ile mevcut sürümü arasındaki farkları gösterir.
en:esya:cades:imza-zamani [2013/09/03 12:16] Dindar Öz |
en:esya:cades:imza-zamani [2013/09/03 12:46] (mevcut) Dindar Öz |
||
---|---|---|---|
Satır 31: | Satır 31: | ||
=== Extracting the Signature Time From the Timestamp === | === Extracting the Signature Time From the Timestamp === | ||
- | İmza zamanın alınabilmesi için, imzanın zaman damgası içermesi gerekmektedir. Bunun için imza türünün en az EST olması gerekmektedir. | + | EST and more advanced signature classes are inherited from EST. So the method ''getTime()'' of the class ''EST'' can be used to get timestamp. The timestamp is extracted from the attribute ''id_aa_signatureTimeStampToken'' |
- | + | ||
- | EST üzeri imza türleri, EST sınıfından türemiştir.Bu yüzden EST sınıfının fonksiyonunu kullanabiliriz. Bu fonksiyondan dönen zaman ''id_aa_signatureTimeStampToken'' özelliğinden alınan zaman bilgisidir. | + | |
<sxh java;title:Java> | <sxh java;title:Java> | ||
Satır 49: | Satır 47: | ||
</sxh> | </sxh> | ||
- | Eğer kullanıcının beyan ettiği imza saatine güveniliyorsa, ''AttributeOIDs.id_signingTime'' özelliği kullanılabilir. Yalnız imzadaki ''AttributeOIDs.id_signingTime'' özelliğini zorunlu bir alan değildir, imza içinde bulunmayabilir. | + | If the user-stated time is trusted then the attribute ''AttributeOIDs.id_signingTime'' can be used. However this attribute is not mandatory and may not exists in the signature. |
<sxh java;title:Java> | <sxh java;title:Java> | ||
Satır 69: | Satır 67: | ||
</sxh> | </sxh> | ||
- | Profesyonel kullanıcılar, ''AttributeOIDs'' sınıfında bulunan özelliklerle diğer zaman damgası bilgilerini de alabilirler. Örnek olarak arşiv tipi için kullanılan zaman damgası özelliğini kullanıldı: | + | By using the other oids defined in ''AttributeOIDs'', the information about other timestamps can be acquired. |
+ | For example, the archival timestamp can be extracted as follows: | ||
<sxh java;title:Java> | <sxh java;title:Java> | ||
Satır 101: | Satır 100: | ||
</sxh> | </sxh> | ||
- | === Zaman Damgası Sunucusunun Test Edilmesi === | + | === Testing the Timestamp Server === |
- | Zaman damgası ayarları verildikten sonra, API zaman damgası alma işlemini kendisi yapmaktadır. Geliştiriciler zaman damgasını test etmek için aşağıdaki örnek kodu kullanabilirler. Zaman damgası işlemlerinden ''TSClient'' sınıfı sorumludur. Bu sınıf ile zaman damgası alınabilir, kalan kontör miktarı sorgulanabilir. | + | API requests the timestamp from the server by using the defined server settings. Developers can use the code below to test the timestamp server. ''TSClient'' is responsible from timestamp operations like timestamp request or user account control. |
<sxh java;title:Java> | <sxh java;title:Java> | ||
Satır 136: | Satır 135: | ||
</sxh> | </sxh> | ||
- | === Zaman Damgası Alma === | + | === Timestamp Request === |
- | ESYA kütüpanesini kullanarak sadece zaman damgası da alabilirsiniz. Bunun için asn1rt.jar, slf4j.jar, ma3api-asn.jar, ma3api-common.jar, ma3api-crypto.jar, ma3api-crypto-gnuprovider.jar, ma3api-infra.jar dosyalarına ihtiyacınız vardır. | + | You can use ESYA API just for timestamp request operation. You need asn1rt.jar, slf4j.jar, ma3api-asn.jar, ma3api-common.jar, ma3api-crypto.jar, ma3api-crypto-gnuprovider.jar, and ma3api-infra.jar for this. |
<sxh java;title:Java> | <sxh java;title:Java> |