Bu sayfa salt okunur. Kaynağı görebilirsiniz ama değiştiremezsiniz. Bunun yanlış olduğunu düşünüyorsanız yöneticiye danışın.
XML Signature API has a configuration file storing the settings for signature creation and verification. The configuration file contains proxy settings, timestamp server settings, resolver interfaces, default algorithms, and validation settings.
<sxh xml> <?xml version="1.0" encoding="UTF-8"?> <xml-signature-config> </sxh>
XML signature configuration starts with the root elementxml-signature-config.
xml-signature-config
Localization properties are defined within locale.
locale
<sxh xml> <locale language="EN" country="EN"/> </sxh>
<sxh xml> <http>
<proxy-host></proxy-host> <proxy-port></proxy-port> <proxy-username></proxy-username> <proxy-password></proxy-password> <basic-authentication-username></basic-authentication-username> <basic-authentication-password></basic-authentication-password> <connection-timeout-in-milliseconds>2000</connection-timeout-in-milliseconds>
</http> </sxh>
If proxy is used then the related configuration is performed within http.
http
<sxh xml> <resolvers>
<resolver class="tr.gov.tubitak.uekae.esya.api.xmlsignature.resolver.IdResolver"/> <resolver class="tr.gov.tubitak.uekae.esya.api.xmlsignature.resolver.DOMResolver"/> <resolver class="tr.gov.tubitak.uekae.esya.api.xmlsignature.resolver.HttpResolver"/> <resolver class="tr.gov.tubitak.uekae.esya.api.xmlsignature.resolver.XPointerResolver"/> <resolver class="tr.gov.tubitak.uekae.esya.api.xmlsignature.resolver.FileResolver"/>
</resolvers> </sxh>
In the element, the classes used to resolve the urls included in the signature. For a standart usage the resolvers lister here is sufficient. For custom protocoles, the interface IResolver must be implemented and added to resolver in the configuration file. For exapmle, if you want to store a data corresponding to a uri ina database, you can implement a DatabaseResolver class.
resolver
<sxh java> public interface IResolver {
boolean isResolvable(String aURI, Context aContext); Document resolve(String aURI, Context aContext) throws IOException;
} </sxh>
<sxh xml> <timestamp-server>
<host>http://timestamp_server_address</host> <userid>fill_id_here</userid> <password>pass</password> <digest-alg>SHA-1</digest-alg>
</timestamp-server> </sxh>
Userid and password are for the timestamp taken from ESYA Timestamp server. For other timestamp services, leave these fields empty.
<sxh xml> <algorithms>
<digest-method>http://www.w3.org/2001/04/xmlenc#sha256</digest-method>
</algorithms> </sxh>
<sxh xml> <validation>
<!-- default policy for certificate validation --> <certificate-validation-policy-file>//path/to/certval-policy.xml</certificate-validation-policy-file> <!-- possible types: {QualifiedCertificate, MaliMuhurCertificate, TimeStampingCertificate} --> <certificate-validation-policy-file for="MaliMuhurCertificate">//path/to/certval-mm-policy.xml</certificate-validation-policy-file> <!-- grace period is the time that needs to pass to get exact revocation info--> <grace-period-in-seconds>86400</grace-period-in-seconds> <!-- how old revocation data should be accepted? --> <last-revocation-period-in-seconds>172800</last-revocation-period-in-seconds> <!-- compare resolved policy with the one at policy uri, if indicated --> <check-policy-uri>false</check-policy-uri> <!-- loosening below 2 settings will cause warnings instead of validation failure --> <!-- referenced validation data must be used for cert validation is set true --> <force-strict-reference-use>false</force-strict-reference-use> <!-- validation data must be published after creation ifs set true, requires grace period for signers --> <use-validation-data-published-after-creation>false</use-validation-data-published-after-creation> <validators> ... </validators>
</validation> </sxh>
QualifiedCertificate
MaliMuhurCertificate
TimeStampingCertificate
true
XML Signature validator classes are located within validation/validators. Normally, you do not have to modify the content of this element if you are not developing custom validators. See the sample configurations for custom validators. The one important thing is that the attribute "inherit-validators-from" is used to define common validators for different profiles.
validation
validators