# AUTHOR <EMAIL@ADDRESS>, YEAR.
# 
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: Defensive Coding Guide\n"
"POT-Creation-Date: 2013-03-12T03:19:44\n"
"PO-Revision-Date: 2013-03-19 15:31+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: Georgian (http://www.transifex.com/projects/p/fedora/language/ka/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ka\n"
"Plural-Forms: nplurals=1; plural=0;\n"

#. Tag: programlisting
#, no-c-format
msgid ""
"\n"
"public class MyTrustManager implements X509TrustManager {\n"
"    private final byte[] certHash;\n"
"\n"
"    public MyTrustManager(byte[] certHash) throws Exception {\n"
"        this.certHash = certHash;\n"
"    }\n"
"\n"
"    @Override\n"
"    public void checkClientTrusted(X509Certificate[] chain, String authType)\n"
"            throws CertificateException {\n"
"        throw new UnsupportedOperationException();\n"
"    }\n"
"\n"
"    @Override\n"
"    public void checkServerTrusted(X509Certificate[] chain,\n"
"            String authType) throws CertificateException {\n"
"        byte[] digest = getCertificateDigest(chain[0]);\n"
"        String digestHex = formatHex(digest);\n"
"\n"
"        if (Arrays.equals(digest, certHash)) {\n"
"            System.err.println(\"info: accepting certificate: \" + digestHex);\n"
"        } else {\n"
"            throw new CertificateException(\"certificate rejected: \"  +\n"
"                    digestHex);\n"
"        }\n"
"    }\n"
"\n"
"    @Override\n"
"    public X509Certificate[] getAcceptedIssuers() {\n"
"        return new X509Certificate[0];\n"
"    }\n"
"}\n"
msgstr ""
