commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From denn...@apache.org
Subject svn commit: r874057 [25/31] - in /websites/production/commons/content/sandbox/commons-openpgp: ./ apidocs/ apidocs/org/apache/commons/openpgp/ apidocs/org/apache/commons/openpgp/ant/ apidocs/org/apache/commons/openpgp/ant/class-use/ apidocs/org/apache/...
Date Sat, 10 Aug 2013 22:25:21 GMT
Added: websites/production/commons/content/sandbox/commons-openpgp/testapidocs/src-html/org/apache/commons/openpgp/BouncyCastleOpenPgpSignerTest.html
==============================================================================
--- websites/production/commons/content/sandbox/commons-openpgp/testapidocs/src-html/org/apache/commons/openpgp/BouncyCastleOpenPgpSignerTest.html (added)
+++ websites/production/commons/content/sandbox/commons-openpgp/testapidocs/src-html/org/apache/commons/openpgp/BouncyCastleOpenPgpSignerTest.html Sat Aug 10 22:25:17 2013
@@ -0,0 +1,317 @@
+<HTML>
+<BODY BGCOLOR="white">
+<PRE>
+<FONT color="green">001</FONT>    package org.apache.commons.openpgp;<a name="line.1"></a>
+<FONT color="green">002</FONT>    <a name="line.2"></a>
+<FONT color="green">003</FONT>    /*<a name="line.3"></a>
+<FONT color="green">004</FONT>     * Licensed to the Apache Software Foundation (ASF) under one or more<a name="line.4"></a>
+<FONT color="green">005</FONT>     * contributor license agreements.  See the NOTICE file distributed with<a name="line.5"></a>
+<FONT color="green">006</FONT>     * this work for additional information regarding copyright ownership.<a name="line.6"></a>
+<FONT color="green">007</FONT>     * The ASF licenses this file to You under the Apache License, Version 2.0<a name="line.7"></a>
+<FONT color="green">008</FONT>     * (the "License"); you may not use this file except in compliance with<a name="line.8"></a>
+<FONT color="green">009</FONT>     * the License.  You may obtain a copy of the License at<a name="line.9"></a>
+<FONT color="green">010</FONT>     *<a name="line.10"></a>
+<FONT color="green">011</FONT>     *      http://www.apache.org/licenses/LICENSE-2.0<a name="line.11"></a>
+<FONT color="green">012</FONT>     *<a name="line.12"></a>
+<FONT color="green">013</FONT>     * Unless required by applicable law or agreed to in writing, software<a name="line.13"></a>
+<FONT color="green">014</FONT>     * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.14"></a>
+<FONT color="green">015</FONT>     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.15"></a>
+<FONT color="green">016</FONT>     * See the License for the specific language governing permissions and<a name="line.16"></a>
+<FONT color="green">017</FONT>     * limitations under the License.<a name="line.17"></a>
+<FONT color="green">018</FONT>     */<a name="line.18"></a>
+<FONT color="green">019</FONT>    <a name="line.19"></a>
+<FONT color="green">020</FONT>    import static org.junit.Assert.assertFalse;<a name="line.20"></a>
+<FONT color="green">021</FONT>    import static org.junit.Assert.assertNotNull;<a name="line.21"></a>
+<FONT color="green">022</FONT>    import static org.junit.Assert.assertTrue;<a name="line.22"></a>
+<FONT color="green">023</FONT>    <a name="line.23"></a>
+<FONT color="green">024</FONT>    import java.io.ByteArrayInputStream;<a name="line.24"></a>
+<FONT color="green">025</FONT>    import java.io.ByteArrayOutputStream;<a name="line.25"></a>
+<FONT color="green">026</FONT>    import java.io.IOException;<a name="line.26"></a>
+<FONT color="green">027</FONT>    <a name="line.27"></a>
+<FONT color="green">028</FONT>    import org.junit.Before;<a name="line.28"></a>
+<FONT color="green">029</FONT>    import org.junit.Test;<a name="line.29"></a>
+<FONT color="green">030</FONT>    <a name="line.30"></a>
+<FONT color="green">031</FONT>    /**<a name="line.31"></a>
+<FONT color="green">032</FONT>     * Test the open pgp signer.<a name="line.32"></a>
+<FONT color="green">033</FONT>     *<a name="line.33"></a>
+<FONT color="green">034</FONT>     * @author &lt;a href="mailto:brett@apache.org"&gt;Brett Porter&lt;/a&gt;<a name="line.34"></a>
+<FONT color="green">035</FONT>     * @todo test text input as well as binary - apparently it fails cross platform<a name="line.35"></a>
+<FONT color="green">036</FONT>     */<a name="line.36"></a>
+<FONT color="green">037</FONT>    public class BouncyCastleOpenPgpSignerTest<a name="line.37"></a>
+<FONT color="green">038</FONT>    {<a name="line.38"></a>
+<FONT color="green">039</FONT>        private OpenPgpSigner signer = new BouncyCastleOpenPgpSigner();<a name="line.39"></a>
+<FONT color="green">040</FONT>    <a name="line.40"></a>
+<FONT color="green">041</FONT>        private OpenPgpSignatureVerifier verifier = new BouncyCastleOpenPgpSignatureVerifier();<a name="line.41"></a>
+<FONT color="green">042</FONT>    <a name="line.42"></a>
+<FONT color="green">043</FONT>        private String keyId = "A7D16BD4";<a name="line.43"></a>
+<FONT color="green">044</FONT>    <a name="line.44"></a>
+<FONT color="green">045</FONT>        private KeyRing keyRing;<a name="line.45"></a>
+<FONT color="green">046</FONT>    <a name="line.46"></a>
+<FONT color="green">047</FONT>        private static final String PASSWORD = "cop";<a name="line.47"></a>
+<FONT color="green">048</FONT>    <a name="line.48"></a>
+<FONT color="green">049</FONT>        @Before<a name="line.49"></a>
+<FONT color="green">050</FONT>        public void setUp()<a name="line.50"></a>
+<FONT color="green">051</FONT>            throws Exception<a name="line.51"></a>
+<FONT color="green">052</FONT>        {<a name="line.52"></a>
+<FONT color="green">053</FONT>            keyRing =<a name="line.53"></a>
+<FONT color="green">054</FONT>                new BouncyCastleKeyRing( getClass().getResourceAsStream( "/secring.gpg" ),<a name="line.54"></a>
+<FONT color="green">055</FONT>                                         getClass().getResourceAsStream( "/pubring.gpg" ), PASSWORD.toCharArray() );<a name="line.55"></a>
+<FONT color="green">056</FONT>        }<a name="line.56"></a>
+<FONT color="green">057</FONT>    <a name="line.57"></a>
+<FONT color="green">058</FONT>        @Test<a name="line.58"></a>
+<FONT color="green">059</FONT>        public void testSignDataDetachedBinary()<a name="line.59"></a>
+<FONT color="green">060</FONT>            throws OpenPgpException, IOException<a name="line.60"></a>
+<FONT color="green">061</FONT>        {<a name="line.61"></a>
+<FONT color="green">062</FONT>            ByteArrayOutputStream signature = new ByteArrayOutputStream();<a name="line.62"></a>
+<FONT color="green">063</FONT>            signer.detachedSign( getClass().getResourceAsStream( "/test-input" ), signature, keyId, keyRing, false );<a name="line.63"></a>
+<FONT color="green">064</FONT>    <a name="line.64"></a>
+<FONT color="green">065</FONT>            SignatureStatus status =<a name="line.65"></a>
+<FONT color="green">066</FONT>                verifier.verifyDetachedSignature( getClass().getResourceAsStream( "/test-input" ),<a name="line.66"></a>
+<FONT color="green">067</FONT>                                                  new ByteArrayInputStream( signature.toByteArray() ), keyRing );<a name="line.67"></a>
+<FONT color="green">068</FONT>            assertNotNull( "check we got a status", status );<a name="line.68"></a>
+<FONT color="green">069</FONT>            assertTrue( "check it was successful", status.isValid() );<a name="line.69"></a>
+<FONT color="green">070</FONT>        }<a name="line.70"></a>
+<FONT color="green">071</FONT>    <a name="line.71"></a>
+<FONT color="green">072</FONT>        @Test<a name="line.72"></a>
+<FONT color="green">073</FONT>        public void testVerifySignatureDetachedBinary()<a name="line.73"></a>
+<FONT color="green">074</FONT>            throws IOException, OpenPgpException<a name="line.74"></a>
+<FONT color="green">075</FONT>        {<a name="line.75"></a>
+<FONT color="green">076</FONT>            SignatureStatus status =<a name="line.76"></a>
+<FONT color="green">077</FONT>                verifier.verifyDetachedSignature( getClass().getResourceAsStream( "/test-input" ),<a name="line.77"></a>
+<FONT color="green">078</FONT>                                                  getClass().getResourceAsStream( "/test-input.bpg" ), keyRing );<a name="line.78"></a>
+<FONT color="green">079</FONT>    <a name="line.79"></a>
+<FONT color="green">080</FONT>            assertNotNull( "check we got a status", status );<a name="line.80"></a>
+<FONT color="green">081</FONT>            assertTrue( "check it was successful", status.isValid() );<a name="line.81"></a>
+<FONT color="green">082</FONT>        }<a name="line.82"></a>
+<FONT color="green">083</FONT>    <a name="line.83"></a>
+<FONT color="green">084</FONT>        @Test<a name="line.84"></a>
+<FONT color="green">085</FONT>        public void testVerifySignatureDetachedBinaryGpg()<a name="line.85"></a>
+<FONT color="green">086</FONT>            throws IOException, OpenPgpException<a name="line.86"></a>
+<FONT color="green">087</FONT>        {<a name="line.87"></a>
+<FONT color="green">088</FONT>            SignatureStatus status =<a name="line.88"></a>
+<FONT color="green">089</FONT>                verifier.verifyDetachedSignature( getClass().getResourceAsStream( "/test-input" ),<a name="line.89"></a>
+<FONT color="green">090</FONT>                                                  getClass().getResourceAsStream( "/test-input.sig" ), keyRing );<a name="line.90"></a>
+<FONT color="green">091</FONT>    <a name="line.91"></a>
+<FONT color="green">092</FONT>            assertNotNull( "check we got a status", status );<a name="line.92"></a>
+<FONT color="green">093</FONT>            assertTrue( "check it was successful", status.isValid() );<a name="line.93"></a>
+<FONT color="green">094</FONT>        }<a name="line.94"></a>
+<FONT color="green">095</FONT>    <a name="line.95"></a>
+<FONT color="green">096</FONT>        @Test<a name="line.96"></a>
+<FONT color="green">097</FONT>        public void testSignDataDetachedAscii()<a name="line.97"></a>
+<FONT color="green">098</FONT>            throws OpenPgpException, IOException<a name="line.98"></a>
+<FONT color="green">099</FONT>        {<a name="line.99"></a>
+<FONT color="green">100</FONT>            ByteArrayOutputStream signature = new ByteArrayOutputStream();<a name="line.100"></a>
+<FONT color="green">101</FONT>            signer.detachedSign( getClass().getResourceAsStream( "/test-input" ), signature, keyId, keyRing, true );<a name="line.101"></a>
+<FONT color="green">102</FONT>    <a name="line.102"></a>
+<FONT color="green">103</FONT>            SignatureStatus status =<a name="line.103"></a>
+<FONT color="green">104</FONT>                verifier.verifyDetachedSignature( getClass().getResourceAsStream( "/test-input" ),<a name="line.104"></a>
+<FONT color="green">105</FONT>                                                  new ByteArrayInputStream( signature.toByteArray() ), keyRing );<a name="line.105"></a>
+<FONT color="green">106</FONT>            assertNotNull( "check we got a status", status );<a name="line.106"></a>
+<FONT color="green">107</FONT>            assertTrue( "check it was successful", status.isValid() );<a name="line.107"></a>
+<FONT color="green">108</FONT>        }<a name="line.108"></a>
+<FONT color="green">109</FONT>    <a name="line.109"></a>
+<FONT color="green">110</FONT>        @Test<a name="line.110"></a>
+<FONT color="green">111</FONT>        public void testVerifySignatureDetachedAscii()<a name="line.111"></a>
+<FONT color="green">112</FONT>            throws IOException, OpenPgpException<a name="line.112"></a>
+<FONT color="green">113</FONT>        {<a name="line.113"></a>
+<FONT color="green">114</FONT>            SignatureStatus status =<a name="line.114"></a>
+<FONT color="green">115</FONT>                verifier.verifyDetachedSignature( getClass().getResourceAsStream( "/test-input" ),<a name="line.115"></a>
+<FONT color="green">116</FONT>                                                  getClass().getResourceAsStream( "/test-input.asc" ), keyRing );<a name="line.116"></a>
+<FONT color="green">117</FONT>    <a name="line.117"></a>
+<FONT color="green">118</FONT>            assertNotNull( "check we got a status", status );<a name="line.118"></a>
+<FONT color="green">119</FONT>            assertTrue( "check it was successful", status.isValid() );<a name="line.119"></a>
+<FONT color="green">120</FONT>        }<a name="line.120"></a>
+<FONT color="green">121</FONT>    <a name="line.121"></a>
+<FONT color="green">122</FONT>        @Test<a name="line.122"></a>
+<FONT color="green">123</FONT>        public void testVerifyMultipleSignatureDetachedAsciiBothGood()<a name="line.123"></a>
+<FONT color="green">124</FONT>            throws IOException, OpenPgpException<a name="line.124"></a>
+<FONT color="green">125</FONT>        {<a name="line.125"></a>
+<FONT color="green">126</FONT>            SignatureStatus status =<a name="line.126"></a>
+<FONT color="green">127</FONT>                verifier.verifyDetachedSignature( getClass().getResourceAsStream( "/test-input" ),<a name="line.127"></a>
+<FONT color="green">128</FONT>                                                  getClass().getResourceAsStream( "/test-input-both-good.asc" ), keyRing );<a name="line.128"></a>
+<FONT color="green">129</FONT>    <a name="line.129"></a>
+<FONT color="green">130</FONT>            assertNotNull( "check we got a status", status );<a name="line.130"></a>
+<FONT color="green">131</FONT>            assertTrue( "check it was successful", status.isValid() );<a name="line.131"></a>
+<FONT color="green">132</FONT>        }<a name="line.132"></a>
+<FONT color="green">133</FONT>    <a name="line.133"></a>
+<FONT color="green">134</FONT>        @Test<a name="line.134"></a>
+<FONT color="green">135</FONT>        public void testVerifyMultipleSignatureDetachedAsciiOneGoodOneBad()<a name="line.135"></a>
+<FONT color="green">136</FONT>            throws IOException, OpenPgpException<a name="line.136"></a>
+<FONT color="green">137</FONT>        {<a name="line.137"></a>
+<FONT color="green">138</FONT>            SignatureStatus status =<a name="line.138"></a>
+<FONT color="green">139</FONT>                verifier.verifyDetachedSignature( getClass().getResourceAsStream( "/test-input" ),<a name="line.139"></a>
+<FONT color="green">140</FONT>                                                  getClass().getResourceAsStream( "/test-input-one-good-one-bad.asc" ),<a name="line.140"></a>
+<FONT color="green">141</FONT>                                                  keyRing );<a name="line.141"></a>
+<FONT color="green">142</FONT>    <a name="line.142"></a>
+<FONT color="green">143</FONT>            assertNotNull( "check we got a status", status );<a name="line.143"></a>
+<FONT color="green">144</FONT>            assertTrue( "check it was successful", status.isValid() );<a name="line.144"></a>
+<FONT color="green">145</FONT>        }<a name="line.145"></a>
+<FONT color="green">146</FONT>    <a name="line.146"></a>
+<FONT color="green">147</FONT>        @Test<a name="line.147"></a>
+<FONT color="green">148</FONT>        public void testVerifyMultipleSignatureDetachedAsciiOneGoodOneMissing()<a name="line.148"></a>
+<FONT color="green">149</FONT>            throws IOException, OpenPgpException<a name="line.149"></a>
+<FONT color="green">150</FONT>        {<a name="line.150"></a>
+<FONT color="green">151</FONT>            SignatureStatus status =<a name="line.151"></a>
+<FONT color="green">152</FONT>                verifier.verifyDetachedSignature( getClass().getResourceAsStream( "/test-input" ),<a name="line.152"></a>
+<FONT color="green">153</FONT>                                                  getClass().getResourceAsStream( "/test-input-one-good-one-missing.asc" ),<a name="line.153"></a>
+<FONT color="green">154</FONT>                                                  keyRing );<a name="line.154"></a>
+<FONT color="green">155</FONT>    <a name="line.155"></a>
+<FONT color="green">156</FONT>            assertNotNull( "check we got a status", status );<a name="line.156"></a>
+<FONT color="green">157</FONT>            assertTrue( "check it was successful", status.isValid() );<a name="line.157"></a>
+<FONT color="green">158</FONT>        }<a name="line.158"></a>
+<FONT color="green">159</FONT>    <a name="line.159"></a>
+<FONT color="green">160</FONT>        @Test<a name="line.160"></a>
+<FONT color="green">161</FONT>        public void testVerifyMultipleSignatureDetachedAsciiOneBadOneGood()<a name="line.161"></a>
+<FONT color="green">162</FONT>            throws IOException, OpenPgpException<a name="line.162"></a>
+<FONT color="green">163</FONT>        {<a name="line.163"></a>
+<FONT color="green">164</FONT>            SignatureStatus status =<a name="line.164"></a>
+<FONT color="green">165</FONT>                verifier.verifyDetachedSignature( getClass().getResourceAsStream( "/test-input" ),<a name="line.165"></a>
+<FONT color="green">166</FONT>                                                  getClass().getResourceAsStream( "/test-input-one-bad-one-good.asc" ),<a name="line.166"></a>
+<FONT color="green">167</FONT>                                                  keyRing );<a name="line.167"></a>
+<FONT color="green">168</FONT>    <a name="line.168"></a>
+<FONT color="green">169</FONT>            assertNotNull( "check we got a status", status );<a name="line.169"></a>
+<FONT color="green">170</FONT>            assertFalse( "check it was not successful", status.isValid() );<a name="line.170"></a>
+<FONT color="green">171</FONT>        }<a name="line.171"></a>
+<FONT color="green">172</FONT>    /* Requires Bouncycastle 140 to work<a name="line.172"></a>
+<FONT color="green">173</FONT>        public void testVerifyMultipleSignatureDetachedAsciiOneMissingOneGood()<a name="line.173"></a>
+<FONT color="green">174</FONT>            throws IOException, OpenPgpException<a name="line.174"></a>
+<FONT color="green">175</FONT>        {<a name="line.175"></a>
+<FONT color="green">176</FONT>            SignatureStatus status =<a name="line.176"></a>
+<FONT color="green">177</FONT>                verifier.verifyDetachedSignature( getClass().getResourceAsStream( "/test-input" ),<a name="line.177"></a>
+<FONT color="green">178</FONT>                                                  getClass().getResourceAsStream( "/test-input-one-missing-one-good.asc" ),<a name="line.178"></a>
+<FONT color="green">179</FONT>                                                  keyRing );<a name="line.179"></a>
+<FONT color="green">180</FONT>    <a name="line.180"></a>
+<FONT color="green">181</FONT>            assertNotNull( "check we got a status", status );<a name="line.181"></a>
+<FONT color="green">182</FONT>            assertTrue( "check it was successful", status.isValid() );<a name="line.182"></a>
+<FONT color="green">183</FONT>        }*/<a name="line.183"></a>
+<FONT color="green">184</FONT>    <a name="line.184"></a>
+<FONT color="green">185</FONT>        @Test( expected = UnknownKeyException.class )<a name="line.185"></a>
+<FONT color="green">186</FONT>        public void testVerifyMultipleSignatureDetachedAsciiBothMissing()<a name="line.186"></a>
+<FONT color="green">187</FONT>            throws IOException, OpenPgpException<a name="line.187"></a>
+<FONT color="green">188</FONT>        {<a name="line.188"></a>
+<FONT color="green">189</FONT>            verifier.verifyDetachedSignature( getClass().getResourceAsStream( "/test-input" ),<a name="line.189"></a>
+<FONT color="green">190</FONT>                                                  getClass().getResourceAsStream( "/test-input-both-missing.asc" ), keyRing );<a name="line.190"></a>
+<FONT color="green">191</FONT>        }<a name="line.191"></a>
+<FONT color="green">192</FONT>    <a name="line.192"></a>
+<FONT color="green">193</FONT>        @Test<a name="line.193"></a>
+<FONT color="green">194</FONT>        public void testVerifyDualSignatureDetachedAsciiBothGood()<a name="line.194"></a>
+<FONT color="green">195</FONT>            throws IOException, OpenPgpException<a name="line.195"></a>
+<FONT color="green">196</FONT>        {<a name="line.196"></a>
+<FONT color="green">197</FONT>            SignatureStatus status =<a name="line.197"></a>
+<FONT color="green">198</FONT>                verifier.verifyDetachedSignature( getClass().getResourceAsStream( "/test-input" ),<a name="line.198"></a>
+<FONT color="green">199</FONT>                                                  getClass().getResourceAsStream( "/test-input-dual-both-good.asc" ), keyRing );<a name="line.199"></a>
+<FONT color="green">200</FONT>    <a name="line.200"></a>
+<FONT color="green">201</FONT>            assertNotNull( "check we got a status", status );<a name="line.201"></a>
+<FONT color="green">202</FONT>            assertTrue( "check it was successful", status.isValid() );<a name="line.202"></a>
+<FONT color="green">203</FONT>        }<a name="line.203"></a>
+<FONT color="green">204</FONT>    <a name="line.204"></a>
+<FONT color="green">205</FONT>        @Test<a name="line.205"></a>
+<FONT color="green">206</FONT>        public void testVerifyDualSignatureDetachedAsciiOneGoodOneMissing()<a name="line.206"></a>
+<FONT color="green">207</FONT>            throws IOException, OpenPgpException<a name="line.207"></a>
+<FONT color="green">208</FONT>        {<a name="line.208"></a>
+<FONT color="green">209</FONT>            SignatureStatus status =<a name="line.209"></a>
+<FONT color="green">210</FONT>                verifier.verifyDetachedSignature( getClass().getResourceAsStream( "/test-input" ),<a name="line.210"></a>
+<FONT color="green">211</FONT>                                                  getClass().getResourceAsStream( "/test-input-dual-one-good-one-missing.asc" ),<a name="line.211"></a>
+<FONT color="green">212</FONT>                                                  keyRing );<a name="line.212"></a>
+<FONT color="green">213</FONT>    <a name="line.213"></a>
+<FONT color="green">214</FONT>            assertNotNull( "check we got a status", status );<a name="line.214"></a>
+<FONT color="green">215</FONT>            assertTrue( "check it was successful", status.isValid() );<a name="line.215"></a>
+<FONT color="green">216</FONT>        }<a name="line.216"></a>
+<FONT color="green">217</FONT>    <a name="line.217"></a>
+<FONT color="green">218</FONT>        @Test<a name="line.218"></a>
+<FONT color="green">219</FONT>        public void testVerifyDualSignatureDetachedAsciiBad()<a name="line.219"></a>
+<FONT color="green">220</FONT>            throws IOException, OpenPgpException<a name="line.220"></a>
+<FONT color="green">221</FONT>        {<a name="line.221"></a>
+<FONT color="green">222</FONT>            SignatureStatus status =<a name="line.222"></a>
+<FONT color="green">223</FONT>                verifier.verifyDetachedSignature( getClass().getResourceAsStream( "/test-input" ),<a name="line.223"></a>
+<FONT color="green">224</FONT>                                                  getClass().getResourceAsStream( "/test-input-dual-bad.asc" ),<a name="line.224"></a>
+<FONT color="green">225</FONT>                                                  keyRing );<a name="line.225"></a>
+<FONT color="green">226</FONT>    <a name="line.226"></a>
+<FONT color="green">227</FONT>            assertNotNull( "check we got a status", status );<a name="line.227"></a>
+<FONT color="green">228</FONT>            assertFalse( "check it was not successful", status.isValid() );<a name="line.228"></a>
+<FONT color="green">229</FONT>        }<a name="line.229"></a>
+<FONT color="green">230</FONT>    <a name="line.230"></a>
+<FONT color="green">231</FONT>        @Test<a name="line.231"></a>
+<FONT color="green">232</FONT>        public void testVerifyDualSignatureDetachedAsciiOneMissingOneGood()<a name="line.232"></a>
+<FONT color="green">233</FONT>            throws IOException, OpenPgpException<a name="line.233"></a>
+<FONT color="green">234</FONT>        {<a name="line.234"></a>
+<FONT color="green">235</FONT>            SignatureStatus status =<a name="line.235"></a>
+<FONT color="green">236</FONT>                verifier.verifyDetachedSignature( getClass().getResourceAsStream( "/test-input" ),<a name="line.236"></a>
+<FONT color="green">237</FONT>                                                  getClass().getResourceAsStream( "/test-input-dual-one-missing-one-good.asc" ),<a name="line.237"></a>
+<FONT color="green">238</FONT>                                                  keyRing );<a name="line.238"></a>
+<FONT color="green">239</FONT>    <a name="line.239"></a>
+<FONT color="green">240</FONT>            assertNotNull( "check we got a status", status );<a name="line.240"></a>
+<FONT color="green">241</FONT>            assertTrue( "check it was successful", status.isValid() );<a name="line.241"></a>
+<FONT color="green">242</FONT>        }<a name="line.242"></a>
+<FONT color="green">243</FONT>    <a name="line.243"></a>
+<FONT color="green">244</FONT>        @Test( expected = UnknownKeyException.class )<a name="line.244"></a>
+<FONT color="green">245</FONT>        public void testVerifyDualSignatureDetachedAsciiBothMissing()<a name="line.245"></a>
+<FONT color="green">246</FONT>            throws IOException, OpenPgpException<a name="line.246"></a>
+<FONT color="green">247</FONT>        {<a name="line.247"></a>
+<FONT color="green">248</FONT>            verifier.verifyDetachedSignature( getClass().getResourceAsStream( "/test-input" ),<a name="line.248"></a>
+<FONT color="green">249</FONT>                                              getClass().getResourceAsStream( "/test-input-dual-both-missing.asc" ), keyRing );<a name="line.249"></a>
+<FONT color="green">250</FONT>        }<a name="line.250"></a>
+<FONT color="green">251</FONT>    }<a name="line.251"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>
\ No newline at end of file

Propchange: websites/production/commons/content/sandbox/commons-openpgp/testapidocs/src-html/org/apache/commons/openpgp/BouncyCastleOpenPgpSignerTest.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: websites/production/commons/content/sandbox/commons-openpgp/testapidocs/src-html/org/apache/commons/openpgp/BouncyCastleOpenPgpStreamingSignerTest.html
==============================================================================
--- websites/production/commons/content/sandbox/commons-openpgp/testapidocs/src-html/org/apache/commons/openpgp/BouncyCastleOpenPgpStreamingSignerTest.html (added)
+++ websites/production/commons/content/sandbox/commons-openpgp/testapidocs/src-html/org/apache/commons/openpgp/BouncyCastleOpenPgpStreamingSignerTest.html Sat Aug 10 22:25:17 2013
@@ -0,0 +1,293 @@
+<HTML>
+<BODY BGCOLOR="white">
+<PRE>
+<FONT color="green">001</FONT>    package org.apache.commons.openpgp;<a name="line.1"></a>
+<FONT color="green">002</FONT>    <a name="line.2"></a>
+<FONT color="green">003</FONT>    /*<a name="line.3"></a>
+<FONT color="green">004</FONT>     * Licensed to the Apache Software Foundation (ASF) under one or more<a name="line.4"></a>
+<FONT color="green">005</FONT>     * contributor license agreements.  See the NOTICE file distributed with<a name="line.5"></a>
+<FONT color="green">006</FONT>     * this work for additional information regarding copyright ownership.<a name="line.6"></a>
+<FONT color="green">007</FONT>     * The ASF licenses this file to You under the Apache License, Version 2.0<a name="line.7"></a>
+<FONT color="green">008</FONT>     * (the "License"); you may not use this file except in compliance with<a name="line.8"></a>
+<FONT color="green">009</FONT>     * the License.  You may obtain a copy of the License at<a name="line.9"></a>
+<FONT color="green">010</FONT>     *<a name="line.10"></a>
+<FONT color="green">011</FONT>     *      http://www.apache.org/licenses/LICENSE-2.0<a name="line.11"></a>
+<FONT color="green">012</FONT>     *<a name="line.12"></a>
+<FONT color="green">013</FONT>     * Unless required by applicable law or agreed to in writing, software<a name="line.13"></a>
+<FONT color="green">014</FONT>     * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.14"></a>
+<FONT color="green">015</FONT>     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.15"></a>
+<FONT color="green">016</FONT>     * See the License for the specific language governing permissions and<a name="line.16"></a>
+<FONT color="green">017</FONT>     * limitations under the License.<a name="line.17"></a>
+<FONT color="green">018</FONT>     */<a name="line.18"></a>
+<FONT color="green">019</FONT>    <a name="line.19"></a>
+<FONT color="green">020</FONT>    import static org.junit.Assert.assertNotNull;<a name="line.20"></a>
+<FONT color="green">021</FONT>    import static org.junit.Assert.assertTrue;<a name="line.21"></a>
+<FONT color="green">022</FONT>    <a name="line.22"></a>
+<FONT color="green">023</FONT>    import java.io.ByteArrayInputStream;<a name="line.23"></a>
+<FONT color="green">024</FONT>    import java.io.IOException;<a name="line.24"></a>
+<FONT color="green">025</FONT>    import java.io.InputStream;<a name="line.25"></a>
+<FONT color="green">026</FONT>    <a name="line.26"></a>
+<FONT color="green">027</FONT>    import org.junit.Before;<a name="line.27"></a>
+<FONT color="green">028</FONT>    import org.junit.Test;<a name="line.28"></a>
+<FONT color="green">029</FONT>    <a name="line.29"></a>
+<FONT color="green">030</FONT>    /**<a name="line.30"></a>
+<FONT color="green">031</FONT>     * Test the open pgp signer.<a name="line.31"></a>
+<FONT color="green">032</FONT>     *<a name="line.32"></a>
+<FONT color="green">033</FONT>     * @author &lt;a href="mailto:brett@apache.org"&gt;Brett Porter&lt;/a&gt;<a name="line.33"></a>
+<FONT color="green">034</FONT>     * @todo test text input as well as binary - apparently it fails cross platform<a name="line.34"></a>
+<FONT color="green">035</FONT>     */<a name="line.35"></a>
+<FONT color="green">036</FONT>    public class BouncyCastleOpenPgpStreamingSignerTest<a name="line.36"></a>
+<FONT color="green">037</FONT>    {<a name="line.37"></a>
+<FONT color="green">038</FONT>        private String keyId = "A7D16BD4";<a name="line.38"></a>
+<FONT color="green">039</FONT>    <a name="line.39"></a>
+<FONT color="green">040</FONT>        private KeyRing keyRing;<a name="line.40"></a>
+<FONT color="green">041</FONT>    <a name="line.41"></a>
+<FONT color="green">042</FONT>        private static final String PASSWORD = "cop";<a name="line.42"></a>
+<FONT color="green">043</FONT>    <a name="line.43"></a>
+<FONT color="green">044</FONT>        @Before<a name="line.44"></a>
+<FONT color="green">045</FONT>        public void setUp()<a name="line.45"></a>
+<FONT color="green">046</FONT>            throws Exception<a name="line.46"></a>
+<FONT color="green">047</FONT>        {<a name="line.47"></a>
+<FONT color="green">048</FONT>            keyRing = new BouncyCastleKeyRing( getClass().getResourceAsStream( "/secring.gpg" ),<a name="line.48"></a>
+<FONT color="green">049</FONT>                                               getClass().getResourceAsStream( "/pubring.gpg" ), PASSWORD.toCharArray() );<a name="line.49"></a>
+<FONT color="green">050</FONT>        }<a name="line.50"></a>
+<FONT color="green">051</FONT>    <a name="line.51"></a>
+<FONT color="green">052</FONT>        @Test<a name="line.52"></a>
+<FONT color="green">053</FONT>        public void testSignDataDetachedBinary()<a name="line.53"></a>
+<FONT color="green">054</FONT>            throws OpenPgpException, IOException<a name="line.54"></a>
+<FONT color="green">055</FONT>        {<a name="line.55"></a>
+<FONT color="green">056</FONT>            OpenPgpStreamingSigner signer = new BouncyCastleOpenPgpStreamingSigner( keyId, keyRing, false );<a name="line.56"></a>
+<FONT color="green">057</FONT>    <a name="line.57"></a>
+<FONT color="green">058</FONT>            InputStream in = getClass().getResourceAsStream( "/test-input" );<a name="line.58"></a>
+<FONT color="green">059</FONT>            byte[] buf = new byte[8192];<a name="line.59"></a>
+<FONT color="green">060</FONT>            int len;<a name="line.60"></a>
+<FONT color="green">061</FONT>            try<a name="line.61"></a>
+<FONT color="green">062</FONT>            {<a name="line.62"></a>
+<FONT color="green">063</FONT>                do<a name="line.63"></a>
+<FONT color="green">064</FONT>                {<a name="line.64"></a>
+<FONT color="green">065</FONT>                    len = in.read( buf, 0, 8192 );<a name="line.65"></a>
+<FONT color="green">066</FONT>                    if ( len &gt; 0 )<a name="line.66"></a>
+<FONT color="green">067</FONT>                    {<a name="line.67"></a>
+<FONT color="green">068</FONT>                        signer.update( buf, 0, len );<a name="line.68"></a>
+<FONT color="green">069</FONT>                    }<a name="line.69"></a>
+<FONT color="green">070</FONT>                }<a name="line.70"></a>
+<FONT color="green">071</FONT>                while ( len &gt;= 0 );<a name="line.71"></a>
+<FONT color="green">072</FONT>            }<a name="line.72"></a>
+<FONT color="green">073</FONT>            finally<a name="line.73"></a>
+<FONT color="green">074</FONT>            {<a name="line.74"></a>
+<FONT color="green">075</FONT>                in.close();<a name="line.75"></a>
+<FONT color="green">076</FONT>            }<a name="line.76"></a>
+<FONT color="green">077</FONT>    <a name="line.77"></a>
+<FONT color="green">078</FONT>            byte[] signature = signer.finish();<a name="line.78"></a>
+<FONT color="green">079</FONT>    <a name="line.79"></a>
+<FONT color="green">080</FONT>            OpenPgpSignatureVerifier verifier = new BouncyCastleOpenPgpSignatureVerifier();<a name="line.80"></a>
+<FONT color="green">081</FONT>    <a name="line.81"></a>
+<FONT color="green">082</FONT>            SignatureStatus status =<a name="line.82"></a>
+<FONT color="green">083</FONT>                verifier.verifyDetachedSignature( getClass().getResourceAsStream( "/test-input" ),<a name="line.83"></a>
+<FONT color="green">084</FONT>                                                  new ByteArrayInputStream( signature ), keyRing );<a name="line.84"></a>
+<FONT color="green">085</FONT>            assertNotNull( "check we got a status", status );<a name="line.85"></a>
+<FONT color="green">086</FONT>            assertTrue( "check it was successful", status.isValid() );<a name="line.86"></a>
+<FONT color="green">087</FONT>        }<a name="line.87"></a>
+<FONT color="green">088</FONT>    <a name="line.88"></a>
+<FONT color="green">089</FONT>        @Test<a name="line.89"></a>
+<FONT color="green">090</FONT>        public void testVerifySignatureDetachedBinary()<a name="line.90"></a>
+<FONT color="green">091</FONT>            throws IOException, OpenPgpException<a name="line.91"></a>
+<FONT color="green">092</FONT>        {<a name="line.92"></a>
+<FONT color="green">093</FONT>            InputStream signature = getClass().getResourceAsStream( "/test-input.bpg" );<a name="line.93"></a>
+<FONT color="green">094</FONT>            OpenPgpStreamingSignatureVerifier verifier =<a name="line.94"></a>
+<FONT color="green">095</FONT>                new BouncyCastleOpenPgpStreamingSignatureVerifier( signature, keyRing );<a name="line.95"></a>
+<FONT color="green">096</FONT>    <a name="line.96"></a>
+<FONT color="green">097</FONT>            InputStream in = getClass().getResourceAsStream( "/test-input" );<a name="line.97"></a>
+<FONT color="green">098</FONT>            byte[] buf = new byte[8192];<a name="line.98"></a>
+<FONT color="green">099</FONT>            int len;<a name="line.99"></a>
+<FONT color="green">100</FONT>            try<a name="line.100"></a>
+<FONT color="green">101</FONT>            {<a name="line.101"></a>
+<FONT color="green">102</FONT>                do<a name="line.102"></a>
+<FONT color="green">103</FONT>                {<a name="line.103"></a>
+<FONT color="green">104</FONT>                    len = in.read( buf, 0, 8192 );<a name="line.104"></a>
+<FONT color="green">105</FONT>                    if ( len &gt; 0 )<a name="line.105"></a>
+<FONT color="green">106</FONT>                    {<a name="line.106"></a>
+<FONT color="green">107</FONT>                        verifier.update( buf, 0, len );<a name="line.107"></a>
+<FONT color="green">108</FONT>                    }<a name="line.108"></a>
+<FONT color="green">109</FONT>                }<a name="line.109"></a>
+<FONT color="green">110</FONT>                while ( len &gt;= 0 );<a name="line.110"></a>
+<FONT color="green">111</FONT>            }<a name="line.111"></a>
+<FONT color="green">112</FONT>            finally<a name="line.112"></a>
+<FONT color="green">113</FONT>            {<a name="line.113"></a>
+<FONT color="green">114</FONT>                in.close();<a name="line.114"></a>
+<FONT color="green">115</FONT>            }<a name="line.115"></a>
+<FONT color="green">116</FONT>    <a name="line.116"></a>
+<FONT color="green">117</FONT>            SignatureStatus status = verifier.finish();<a name="line.117"></a>
+<FONT color="green">118</FONT>    <a name="line.118"></a>
+<FONT color="green">119</FONT>            assertNotNull( "check we got a status", status );<a name="line.119"></a>
+<FONT color="green">120</FONT>            assertTrue( "check it was successful", status.isValid() );<a name="line.120"></a>
+<FONT color="green">121</FONT>        }<a name="line.121"></a>
+<FONT color="green">122</FONT>    <a name="line.122"></a>
+<FONT color="green">123</FONT>        @Test<a name="line.123"></a>
+<FONT color="green">124</FONT>        public void testVerifySignatureDetachedBinaryGpg()<a name="line.124"></a>
+<FONT color="green">125</FONT>            throws IOException, OpenPgpException<a name="line.125"></a>
+<FONT color="green">126</FONT>        {<a name="line.126"></a>
+<FONT color="green">127</FONT>            InputStream signature = getClass().getResourceAsStream( "/test-input.sig" );<a name="line.127"></a>
+<FONT color="green">128</FONT>            OpenPgpStreamingSignatureVerifier verifier =<a name="line.128"></a>
+<FONT color="green">129</FONT>                new BouncyCastleOpenPgpStreamingSignatureVerifier( signature, keyRing );<a name="line.129"></a>
+<FONT color="green">130</FONT>    <a name="line.130"></a>
+<FONT color="green">131</FONT>            InputStream in = getClass().getResourceAsStream( "/test-input" );<a name="line.131"></a>
+<FONT color="green">132</FONT>            byte[] buf = new byte[8192];<a name="line.132"></a>
+<FONT color="green">133</FONT>            int len;<a name="line.133"></a>
+<FONT color="green">134</FONT>            try<a name="line.134"></a>
+<FONT color="green">135</FONT>            {<a name="line.135"></a>
+<FONT color="green">136</FONT>                do<a name="line.136"></a>
+<FONT color="green">137</FONT>                {<a name="line.137"></a>
+<FONT color="green">138</FONT>                    len = in.read( buf, 0, 8192 );<a name="line.138"></a>
+<FONT color="green">139</FONT>                    if ( len &gt; 0 )<a name="line.139"></a>
+<FONT color="green">140</FONT>                    {<a name="line.140"></a>
+<FONT color="green">141</FONT>                        verifier.update( buf, 0, len );<a name="line.141"></a>
+<FONT color="green">142</FONT>                    }<a name="line.142"></a>
+<FONT color="green">143</FONT>                }<a name="line.143"></a>
+<FONT color="green">144</FONT>                while ( len &gt;= 0 );<a name="line.144"></a>
+<FONT color="green">145</FONT>            }<a name="line.145"></a>
+<FONT color="green">146</FONT>            finally<a name="line.146"></a>
+<FONT color="green">147</FONT>            {<a name="line.147"></a>
+<FONT color="green">148</FONT>                in.close();<a name="line.148"></a>
+<FONT color="green">149</FONT>            }<a name="line.149"></a>
+<FONT color="green">150</FONT>    <a name="line.150"></a>
+<FONT color="green">151</FONT>            SignatureStatus status = verifier.finish();<a name="line.151"></a>
+<FONT color="green">152</FONT>    <a name="line.152"></a>
+<FONT color="green">153</FONT>            assertNotNull( "check we got a status", status );<a name="line.153"></a>
+<FONT color="green">154</FONT>            assertTrue( "check it was successful", status.isValid() );<a name="line.154"></a>
+<FONT color="green">155</FONT>        }<a name="line.155"></a>
+<FONT color="green">156</FONT>    <a name="line.156"></a>
+<FONT color="green">157</FONT>        @Test<a name="line.157"></a>
+<FONT color="green">158</FONT>        public void testSignDataDetachedAscii()<a name="line.158"></a>
+<FONT color="green">159</FONT>            throws OpenPgpException, IOException<a name="line.159"></a>
+<FONT color="green">160</FONT>        {<a name="line.160"></a>
+<FONT color="green">161</FONT>            OpenPgpStreamingSigner signer = new BouncyCastleOpenPgpStreamingSigner( keyId, keyRing, true );<a name="line.161"></a>
+<FONT color="green">162</FONT>    <a name="line.162"></a>
+<FONT color="green">163</FONT>            InputStream in = getClass().getResourceAsStream( "/test-input" );<a name="line.163"></a>
+<FONT color="green">164</FONT>            byte[] buf = new byte[8192];<a name="line.164"></a>
+<FONT color="green">165</FONT>            int len;<a name="line.165"></a>
+<FONT color="green">166</FONT>            try<a name="line.166"></a>
+<FONT color="green">167</FONT>            {<a name="line.167"></a>
+<FONT color="green">168</FONT>                do<a name="line.168"></a>
+<FONT color="green">169</FONT>                {<a name="line.169"></a>
+<FONT color="green">170</FONT>                    len = in.read( buf, 0, 8192 );<a name="line.170"></a>
+<FONT color="green">171</FONT>                    if ( len &gt; 0 )<a name="line.171"></a>
+<FONT color="green">172</FONT>                    {<a name="line.172"></a>
+<FONT color="green">173</FONT>                        signer.update( buf, 0, len );<a name="line.173"></a>
+<FONT color="green">174</FONT>                    }<a name="line.174"></a>
+<FONT color="green">175</FONT>                }<a name="line.175"></a>
+<FONT color="green">176</FONT>                while ( len &gt;= 0 );<a name="line.176"></a>
+<FONT color="green">177</FONT>            }<a name="line.177"></a>
+<FONT color="green">178</FONT>            finally<a name="line.178"></a>
+<FONT color="green">179</FONT>            {<a name="line.179"></a>
+<FONT color="green">180</FONT>                in.close();<a name="line.180"></a>
+<FONT color="green">181</FONT>            }<a name="line.181"></a>
+<FONT color="green">182</FONT>    <a name="line.182"></a>
+<FONT color="green">183</FONT>            byte[] signature = signer.finish();<a name="line.183"></a>
+<FONT color="green">184</FONT>    <a name="line.184"></a>
+<FONT color="green">185</FONT>            OpenPgpSignatureVerifier verifier = new BouncyCastleOpenPgpSignatureVerifier();<a name="line.185"></a>
+<FONT color="green">186</FONT>    <a name="line.186"></a>
+<FONT color="green">187</FONT>            SignatureStatus status =<a name="line.187"></a>
+<FONT color="green">188</FONT>                verifier.verifyDetachedSignature( getClass().getResourceAsStream( "/test-input" ),<a name="line.188"></a>
+<FONT color="green">189</FONT>                                                  new ByteArrayInputStream( signature ), keyRing );<a name="line.189"></a>
+<FONT color="green">190</FONT>            assertNotNull( "check we got a status", status );<a name="line.190"></a>
+<FONT color="green">191</FONT>            assertTrue( "check it was successful", status.isValid() );<a name="line.191"></a>
+<FONT color="green">192</FONT>        }<a name="line.192"></a>
+<FONT color="green">193</FONT>    <a name="line.193"></a>
+<FONT color="green">194</FONT>        @Test<a name="line.194"></a>
+<FONT color="green">195</FONT>        public void testVerifySignatureDetachedAscii()<a name="line.195"></a>
+<FONT color="green">196</FONT>            throws IOException, OpenPgpException<a name="line.196"></a>
+<FONT color="green">197</FONT>        {<a name="line.197"></a>
+<FONT color="green">198</FONT>            InputStream signature = getClass().getResourceAsStream( "/test-input.asc" );<a name="line.198"></a>
+<FONT color="green">199</FONT>            OpenPgpStreamingSignatureVerifier verifier =<a name="line.199"></a>
+<FONT color="green">200</FONT>                new BouncyCastleOpenPgpStreamingSignatureVerifier( signature, keyRing );<a name="line.200"></a>
+<FONT color="green">201</FONT>    <a name="line.201"></a>
+<FONT color="green">202</FONT>            InputStream in = getClass().getResourceAsStream( "/test-input" );<a name="line.202"></a>
+<FONT color="green">203</FONT>            byte[] buf = new byte[8192];<a name="line.203"></a>
+<FONT color="green">204</FONT>            int len;<a name="line.204"></a>
+<FONT color="green">205</FONT>            try<a name="line.205"></a>
+<FONT color="green">206</FONT>            {<a name="line.206"></a>
+<FONT color="green">207</FONT>                do<a name="line.207"></a>
+<FONT color="green">208</FONT>                {<a name="line.208"></a>
+<FONT color="green">209</FONT>                    len = in.read( buf, 0, 8192 );<a name="line.209"></a>
+<FONT color="green">210</FONT>                    if ( len &gt; 0 )<a name="line.210"></a>
+<FONT color="green">211</FONT>                    {<a name="line.211"></a>
+<FONT color="green">212</FONT>                        verifier.update( buf, 0, len );<a name="line.212"></a>
+<FONT color="green">213</FONT>                    }<a name="line.213"></a>
+<FONT color="green">214</FONT>                }<a name="line.214"></a>
+<FONT color="green">215</FONT>                while ( len &gt;= 0 );<a name="line.215"></a>
+<FONT color="green">216</FONT>            }<a name="line.216"></a>
+<FONT color="green">217</FONT>            finally<a name="line.217"></a>
+<FONT color="green">218</FONT>            {<a name="line.218"></a>
+<FONT color="green">219</FONT>                in.close();<a name="line.219"></a>
+<FONT color="green">220</FONT>            }<a name="line.220"></a>
+<FONT color="green">221</FONT>    <a name="line.221"></a>
+<FONT color="green">222</FONT>            SignatureStatus status = verifier.finish();<a name="line.222"></a>
+<FONT color="green">223</FONT>    <a name="line.223"></a>
+<FONT color="green">224</FONT>            assertNotNull( "check we got a status", status );<a name="line.224"></a>
+<FONT color="green">225</FONT>            assertTrue( "check it was successful", status.isValid() );<a name="line.225"></a>
+<FONT color="green">226</FONT>        }<a name="line.226"></a>
+<FONT color="green">227</FONT>    }<a name="line.227"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>
\ No newline at end of file

Propchange: websites/production/commons/content/sandbox/commons-openpgp/testapidocs/src-html/org/apache/commons/openpgp/BouncyCastleOpenPgpStreamingSignerTest.html
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: websites/production/commons/content/sandbox/commons-openpgp/testapidocs/stylesheet.css
==============================================================================
--- websites/production/commons/content/sandbox/commons-openpgp/testapidocs/stylesheet.css (original)
+++ websites/production/commons/content/sandbox/commons-openpgp/testapidocs/stylesheet.css Sat Aug 10 22:25:17 2013
@@ -26,4 +26,3 @@ h1 { font-size: 145% }
 
 .NavBarCell2    { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;}
 .NavBarCell3    { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;}
-

Modified: websites/production/commons/content/sandbox/commons-openpgp/usage.html
==============================================================================
--- websites/production/commons/content/sandbox/commons-openpgp/usage.html (original)
+++ websites/production/commons/content/sandbox/commons-openpgp/usage.html Sat Aug 10 22:25:17 2013
@@ -1,17 +1,9 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-
-
-
-
-
-
-
-
-
-
-<html xmlns="http://www.w3.org/1999/xhtml">
+<!-- Generated by Apache Maven Doxia at Aug 11, 2013 ( $Revision: 1080083 $ ) -->
+<!-- $HeadURL: https://svn.apache.org/repos/asf/commons/proper/commons-skin/trunk/src/main/resources/META-INF/maven/site.vm $ -->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
     <title>Commons OpenPGP - Usage</title>
     <style type="text/css" media="all">
       @import url("./css/maven-base.css");
@@ -19,269 +11,181 @@
       @import url("./css/site.css");
     </style>
     <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
-          <meta name="author" content="Brett Porter" />
-        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
-      </head>
+      <meta name="author" content="Brett Porter" />
+    <meta name="Date-Revision-yyyymmdd" content="20130811" />
+    <meta http-equiv="Content-Language" content="en" />
+                                                    
+<link href="./css/prettify.css" type="text/css" rel="stylesheet" media="all"/>                                                        
+<script type="text/javascript" src="./js/prettify.js"></script>                                                        
+<script type="text/javascript">window.onload=function() {
+              prettyPrint();
+          }</script>                      
+        </head>
   <body class="composite">
     <div id="banner">
-                  <a href="../../" id="bannerLeft">
-    
-                                            <img src="../../images/logo.png" alt="" />
-    
-            </a>
-                    <div class="clear">
+            <div id="bannerLeft">
+                                            <a href="http://commons.apache.org/" title="Apache Commons logo">
+                                        <img src="./images/commons-logo.png" alt="Apache Commons logo"/>
+                </a>
+            </div><!-- id="bannerLeft" -->
+                <div class="clear">
         <hr/>
       </div>
     </div>
     <div id="breadcrumbs">
-          
-  
-
-  
-    
             
-  
-    
-            <div class="xleft">
-        Last Published: 17 May 2008
-                  &nbsp;| Version: 1.0-SNAPSHOT
+                
+                <div class="xleft">
+        <span id="publishDate">Last Published: 11 August 2013</span>
+                  &nbsp;| <span id="projectVersion">Version: 1.0-SNAPSHOT</span>
                       </div>
-            <div class="xright">            <a href="http://www.apachecon.com/" class="externalLink">ApacheCon</a>
+            <div class="xright">                    <a href="http://www.apachecon.com/" class="externalLink" title="ApacheCon">ApacheCon</a>
             |
-                <a href="http://www.apache.org" class="externalLink">Apache</a>
+                        <a href="http://www.apache.org" class="externalLink" title="Apache">Apache</a>
             |
-                <a href="../../">Commons</a>
+                        <a href="../../" title="Commons">Commons</a>
             |
-                <a href="../">Sandbox</a>
+                        <a href="../" title="Sandbox">Sandbox</a>
             |
-                <a href="http://www.bouncycastle.org" class="externalLink">Bouncy Castle</a>
-            
-  
-
-  
-    
-            
-  
-    
-  </div>
+                        <a href="http://www.bouncycastle.org" class="externalLink" title="Bouncy Castle">Bouncy Castle</a>
+              
+                
+      </div>
       <div class="clear">
         <hr/>
       </div>
     </div>
     <div id="leftColumn">
       <div id="navcolumn">
-           
-  
-
-  
-    
-            
-  
-    
-                   <h5>Commons OpenPGP</h5>
-            <ul>
-              
-    <li class="none">
-                    <a href="index.html">Overview</a>
-          </li>
-              
-    <li class="none">
-              <strong>Usage</strong>
-        </li>
-              
-    <li class="none">
-                    <a href="signer.html">Signer Ant Task</a>
+             
+                
+                                <h5>Commons OpenPGP</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="index.html" title="Overview">Overview</a>
+            </li>
+                  <li class="none">
+            <strong>Usage</strong>
           </li>
           </ul>
-              <h5>Development</h5>
-            <ul>
-              
-    <li class="none">
-                    <a href="mail-lists.html">Mailing Lists</a>
-          </li>
-              
-    <li class="none">
-                    <a href="issue-tracking.html">Issue Tracking</a>
-          </li>
-              
-    <li class="none">
-                    <a href="team-list.html">Team</a>
-          </li>
-              
-    <li class="none">
-                    <a href="source-repository.html">Source Repository</a>
-          </li>
-              
-    <li class="none">
-                    <a href="apidocs/index.html">Javadoc (latest)</a>
-          </li>
+                       <h5>Ant Tasks</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="signer.html" title="Signer">Signer</a>
+            </li>
+                  <li class="none">
+                          <a href="verifier.html" title="Verifier">Verifier</a>
+            </li>
           </ul>
-              <h5>Project Documentation</h5>
-            <ul>
-              
-                
-              
-      
-            
-      
-            
-      
-            
-      
-            
-      
-            
-      
-            
-      
-              
-        <li class="collapsed">
-                    <a href="project-info.html">Project Information</a>
-                </li>
-              
-                
-              
-      
-            
-      
-            
-      
-            
-      
-            
-      
-            
-      
-            
-      
-            
-      
-            
-      
-            
-      
-            
-      
-              
-        <li class="collapsed">
-                    <a href="project-reports.html">Project Reports</a>
-                </li>
+                       <h5>Development</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="mail-lists.html" title="Mailing Lists">Mailing Lists</a>
+            </li>
+                  <li class="none">
+                          <a href="issue-tracking.html" title="Issue Tracking">Issue Tracking</a>
+            </li>
+                  <li class="none">
+                          <a href="team-list.html" title="Team">Team</a>
+            </li>
+                  <li class="none">
+                          <a href="source-repository.html" title="Source Repository">Source Repository</a>
+            </li>
+                  <li class="none">
+                          <a href="apidocs/index.html" title="Javadoc (latest)">Javadoc (latest)</a>
+            </li>
           </ul>
-              <h5>Commons</h5>
-            <ul>
-              
-    <li class="none">
-                    <a href="../../">Home</a>
-          </li>
-              
-                
-              
-      
-              
-        <li class="collapsed">
-                    <a href="../../components.html">Components</a>
-                </li>
-              
-                
-              
-      
-              
-        <li class="collapsed">
-                    <a href="../index.html">Sandbox</a>
-                </li>
-              
-                
-              
-      
-              
-        <li class="collapsed">
-                    <a href="../../dormant/index.html">Dormant</a>
-                </li>
-              
-    <li class="none">
-                    <a href="../../volunteering.html">Volunteering</a>
-          </li>
-              
-    <li class="none">
-                    <a href="../../patches.html">Contributing Patches</a>
-          </li>
-              
-    <li class="none">
-                    <a href="../../building.html">Building Components</a>
-          </li>
-              
-    <li class="none">
-                    <a href="../../releases/index.html">Releasing Components</a>
-          </li>
-              
-    <li class="none">
-                    <a href="http://wiki.apache.org/commons/FrontPage" class="externalLink">Wiki</a>
-          </li>
+                       <h5>Project Documentation</h5>
+                  <ul>
+                                                                                                                                                                                                                    <li class="collapsed">
+                          <a href="project-info.html" title="Project Information">Project Information</a>
+                  </li>
+                                                                                                                                                                                                                                                                          <li class="collapsed">
+                          <a href="project-reports.html" title="Project Reports">Project Reports</a>
+                  </li>
           </ul>
-              <h5>ASF</h5>
-            <ul>
-              
-    <li class="none">
-                    <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink">Sponsorship</a>
-          </li>
-              
-    <li class="none">
-                    <a href="http://www.apache.org/foundation/thanks.html" class="externalLink">Thanks</a>
-          </li>
+                       <h5>Commons</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../../" title="Home">Home</a>
+            </li>
+                  <li class="none">
+                          <a href="http://www.apache.org/licenses/" class="externalLink" title="License">License</a>
+            </li>
+                                                                    <li class="collapsed">
+                          <a href="../../components.html" title="Components">Components</a>
+                  </li>
+                                                                    <li class="collapsed">
+                          <a href="../index.html" title="Sandbox">Sandbox</a>
+                  </li>
+                                                                    <li class="collapsed">
+                          <a href="../../dormant/index.html" title="Dormant">Dormant</a>
+                  </li>
+          </ul>
+                       <h5>General Information</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../../volunteering.html" title="Volunteering">Volunteering</a>
+            </li>
+                  <li class="none">
+                          <a href="../../patches.html" title="Contributing Patches">Contributing Patches</a>
+            </li>
+                  <li class="none">
+                          <a href="../../building.html" title="Building Components">Building Components</a>
+            </li>
+                  <li class="none">
+                          <a href="../../releases/index.html" title="Releasing Components">Releasing Components</a>
+            </li>
+                  <li class="none">
+                          <a href="http://wiki.apache.org/commons/FrontPage" class="externalLink" title="Wiki">Wiki</a>
+            </li>
           </ul>
-                                           <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
-            <img alt="Built by Maven" src="./images/logos/maven-feather.png"></img>
-          </a>
+                       <h5>ASF</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="http://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How the ASF works">How the ASF works</a>
+            </li>
+                  <li class="none">
+                          <a href="http://www.apache.org/foundation/getinvolved.html" class="externalLink" title="Get Involved">Get Involved</a>
+            </li>
+                  <li class="none">
+                          <a href="http://www.apache.org/dev/" class="externalLink" title="Developer Resources">Developer Resources</a>
+            </li>
+                  <li class="none">
+                          <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsorship">Sponsorship</a>
+            </li>
+                  <li class="none">
+                          <a href="http://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks">Thanks</a>
+            </li>
+          </ul>
+                                                                                                                   <a href="http://www.apache.org/events/current-event.html" title="ApacheCon" class="poweredBy">
+        <img class="poweredBy"  alt="ApacheCon" src="http://www.apache.org/events/current-event-125x125.png"    />
+      </a>
+                                                                                                    <a href="http://maven.apache.org/" title="Maven" class="poweredBy">
+        <img class="poweredBy"  alt="Maven" src="http://maven.apache.org/images/logos/maven-feather.png"    />
+      </a>
                        
-  
-
-  
-    
-            
-  
-    
-        </div>
+                
+            </div>
     </div>
     <div id="bodyColumn">
       <div id="contentBox">
-        <div class="section"><h2>Usage Instructions</h2>
-<p>Currently only creation and verification of detached signatures is supported. This can be done in streaming and non-streaming mode.</p>
-<p>Both modes require that you have created a key ring.</p>
-<div class="section"><h3>Creating a Key Ring</h3>
-<p>A key ring object needs to be created, containing an input stream for both the public and secret key rings. The password for the secret key ring also needs to be passed in for creating signatures.</p>
-<p>For example, to create the Bouncy Castle key ring, the constructor is used:</p>
-<div class="source"><pre>BouncyCastleKeyRing( InputStream secretKeyRing, InputStream publicKeyRing, char[] password );
</pre>
-</div>
-</div>
-<div class="section"><h3>Non-streaming Mode</h3>
-<p>To sign data with a detached signature, create a <tt>OpenPgpSigner</tt>
-.</p>
-<div class="source"><pre>signer = new BouncyCastleOpenPgpSigner();
+        <div class="section"><h2>Usage Instructions<a name="Usage_Instructions"></a></h2><p>Currently only creation and verification of detached signatures is supported. This can be done in streaming and non-streaming mode.</p><p>Both modes require that you have created a key ring.</p><div class="section"><h3>Creating a Key Ring<a name="Creating_a_Key_Ring"></a></h3><p>A key ring object needs to be created, containing an input stream for both the public and secret key rings. The password for the secret key ring also needs to be passed in for creating signatures.</p><p>For example, to create the Bouncy Castle key ring, the constructor is used:</p><div><pre>BouncyCastleKeyRing( InputStream secretKeyRing, InputStream publicKeyRing, char[] password );
+</pre></div></div><div class="section"><h3>Non-streaming Mode<a name="Non-streaming_Mode"></a></h3><!-- TODO: link to Javadoc --><p>To sign data with a detached signature, create a <tt>OpenPgpSigner</tt>.</p><div><pre>signer = new BouncyCastleOpenPgpSigner();
 
-signer.detachedSign( 
+signer.detachedSign(
   getClass().getResourceAsStream( &quot;/test-input&quot; ),  // binary input file
   signature,                                        // outputstream for the signature
   keyId,                                            // key ID
   keyRing,
-  true );                                           // ascii armor
</pre>
-</div>
-<p>Verifying the signature is similar.</p>
-<div class="source"><pre>verifier = new BouncyCastleOpenPgpSignatureVerifier();
+  true );                                           // ascii armor?
+</pre></div><p>Verifying the signature is similar.</p><div><pre>verifier = new BouncyCastleOpenPgpSignatureVerifier();
 
-verifier.verifyDetachedSignature( 
+SignatureStatus status = verifier.verifyDetachedSignature(
   getClass().getResourceAsStream( &quot;/test-input&quot; ),  // binary input file
   signature,                                        // inputstream for the signature
-  keyRing,
-  true );                                           // ascii armor
</pre>
-</div>
-</div>
-<div class="section"><h3>Streaming Mode</h3>
-<p>To sign data in streaming mode, create an instance of <tt>OpenPgpStreamingSigner</tt>
-.</p>
-<p>The <tt>update()</tt>
- method is called on blocks of data to update the signautre. Finally, <tt>finish()</tt>
- is called to receive the detached signature as a byte array.</p>
-<div class="source"><pre>signer = new BouncyCastleOpenPgpStreamingSigner( 
+  keyRing);
+</pre></div></div><div class="section"><h3>Streaming Mode<a name="Streaming_Mode"></a></h3><!-- TODO: link to Javadoc --><p>To sign data in streaming mode, create an instance of <tt>OpenPgpStreamingSigner</tt>.</p><p>The <tt>update()</tt> method is called on blocks of data to update the signature. Finally, <tt>finish()</tt> is called to receive the detached signature as a byte array.</p><div><pre>signer = new BouncyCastleOpenPgpStreamingSigner(
   new FileOutputStream( &quot;file.asc&quot; ),           // detached signature
   &quot;ABC123D&quot;,                                    // key ID
   keyRing,
@@ -298,10 +202,8 @@ do
 }
 while ( len &gt;= 0 );
 
-byte[] signature = signer.finish();
</pre>
-</div>
-<p>To verify a signature in streaming mode is similar.</p>
-<div class="source"><pre>verifier = new BouncyCastleOpenPgpStreamingSignatureVerifier( 
+byte[] signature = signer.finish();
+</pre></div><p>Verifying a signature in streaming mode is similar.</p><div><pre>verifier = new BouncyCastleOpenPgpStreamingSignatureVerifier(
   new FileInputStream( &quot;file.asc&quot; ),            // detached signature
   keyRing,
   true );                                       // ascii armor?
@@ -317,35 +219,25 @@ do
 }
 while ( len &gt;= 0 );
 
-SignatureStatus status = verifier.finish();
</pre>
-</div>
-<p>The <tt>SignatureStatus</tt>
- returned indicates whether the signature was valid and whether it was trusted.</p>
-</div>
-</div>
-
+SignatureStatus status = verifier.finish();
+</pre></div><p>The <tt>SignatureStatus</tt> returned indicates whether the signature was valid and whether it was trusted.</p></div></div>
       </div>
     </div>
     <div class="clear">
       <hr/>
     </div>
     <div id="footer">
-      <div class="xright">&#169;  
-          2005-2008
-    
-          The Apache Software Foundation
-          
-  
-
-  
-    
-            
-  
-    
-  </div>
-      <div class="clear">
+      <div class="center">Copyright &#169;                    2005-2013
+                        <a href="http://www.apache.org/">The Apache Software Foundation</a>.
+            All Rights Reserved.      
+                
+      </div>
+                          
+<div class="center">Apache Commons, Apache Commons OpenPGP (Sandbox), Apache, the Apache feather logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation.
+      All other marks mentioned may be trademarks or registered trademarks of their respective owners.</div>
+                <div class="clear">
         <hr/>
       </div>
     </div>
   </body>
-</html>
+</html>
\ No newline at end of file

Added: websites/production/commons/content/sandbox/commons-openpgp/verifier.html
==============================================================================
--- websites/production/commons/content/sandbox/commons-openpgp/verifier.html (added)
+++ websites/production/commons/content/sandbox/commons-openpgp/verifier.html Sat Aug 10 22:25:17 2013
@@ -0,0 +1,205 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!-- Generated by Apache Maven Doxia at Aug 11, 2013 ( $Revision: 1080083 $ ) -->
+<!-- $HeadURL: https://svn.apache.org/repos/asf/commons/proper/commons-skin/trunk/src/main/resources/META-INF/maven/site.vm $ -->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+    <title>Commons OpenPGP - Verifier Ant Task</title>
+    <style type="text/css" media="all">
+      @import url("./css/maven-base.css");
+      @import url("./css/maven-theme.css");
+      @import url("./css/site.css");
+    </style>
+    <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
+      <meta name="author" content="Dennis Lundberg" />
+    <meta name="Date-Creation-yyyymmdd" content="20100417" />
+    <meta name="Date-Revision-yyyymmdd" content="20130811" />
+    <meta http-equiv="Content-Language" content="en" />
+                                                    
+<link href="./css/prettify.css" type="text/css" rel="stylesheet" media="all"/>                                                        
+<script type="text/javascript" src="./js/prettify.js"></script>                                                        
+<script type="text/javascript">window.onload=function() {
+              prettyPrint();
+          }</script>                      
+        </head>
+  <body class="composite">
+    <div id="banner">
+            <div id="bannerLeft">
+                                            <a href="http://commons.apache.org/" title="Apache Commons logo">
+                                        <img src="./images/commons-logo.png" alt="Apache Commons logo"/>
+                </a>
+            </div><!-- id="bannerLeft" -->
+                <div class="clear">
+        <hr/>
+      </div>
+    </div>
+    <div id="breadcrumbs">
+            
+                
+                <div class="xleft">
+        <span id="publishDate">Last Published: 11 August 2013</span>
+                  &nbsp;| <span id="projectVersion">Version: 1.0-SNAPSHOT</span>
+                      </div>
+            <div class="xright">                    <a href="http://www.apachecon.com/" class="externalLink" title="ApacheCon">ApacheCon</a>
+            |
+                        <a href="http://www.apache.org" class="externalLink" title="Apache">Apache</a>
+            |
+                        <a href="../../" title="Commons">Commons</a>
+            |
+                        <a href="../" title="Sandbox">Sandbox</a>
+            |
+                        <a href="http://www.bouncycastle.org" class="externalLink" title="Bouncy Castle">Bouncy Castle</a>
+              
+                
+      </div>
+      <div class="clear">
+        <hr/>
+      </div>
+    </div>
+    <div id="leftColumn">
+      <div id="navcolumn">
+             
+                
+                                <h5>Commons OpenPGP</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="index.html" title="Overview">Overview</a>
+            </li>
+                  <li class="none">
+                          <a href="usage.html" title="Usage">Usage</a>
+            </li>
+          </ul>
+                       <h5>Ant Tasks</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="signer.html" title="Signer">Signer</a>
+            </li>
+                  <li class="none">
+            <strong>Verifier</strong>
+          </li>
+          </ul>
+                       <h5>Development</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="mail-lists.html" title="Mailing Lists">Mailing Lists</a>
+            </li>
+                  <li class="none">
+                          <a href="issue-tracking.html" title="Issue Tracking">Issue Tracking</a>
+            </li>
+                  <li class="none">
+                          <a href="team-list.html" title="Team">Team</a>
+            </li>
+                  <li class="none">
+                          <a href="source-repository.html" title="Source Repository">Source Repository</a>
+            </li>
+                  <li class="none">
+                          <a href="apidocs/index.html" title="Javadoc (latest)">Javadoc (latest)</a>
+            </li>
+          </ul>
+                       <h5>Project Documentation</h5>
+                  <ul>
+                                                                                                                                                                                                                    <li class="collapsed">
+                          <a href="project-info.html" title="Project Information">Project Information</a>
+                  </li>
+                                                                                                                                                                                                                                                                          <li class="collapsed">
+                          <a href="project-reports.html" title="Project Reports">Project Reports</a>
+                  </li>
+          </ul>
+                       <h5>Commons</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../../" title="Home">Home</a>
+            </li>
+                  <li class="none">
+                          <a href="http://www.apache.org/licenses/" class="externalLink" title="License">License</a>
+            </li>
+                                                                    <li class="collapsed">
+                          <a href="../../components.html" title="Components">Components</a>
+                  </li>
+                                                                    <li class="collapsed">
+                          <a href="../index.html" title="Sandbox">Sandbox</a>
+                  </li>
+                                                                    <li class="collapsed">
+                          <a href="../../dormant/index.html" title="Dormant">Dormant</a>
+                  </li>
+          </ul>
+                       <h5>General Information</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../../volunteering.html" title="Volunteering">Volunteering</a>
+            </li>
+                  <li class="none">
+                          <a href="../../patches.html" title="Contributing Patches">Contributing Patches</a>
+            </li>
+                  <li class="none">
+                          <a href="../../building.html" title="Building Components">Building Components</a>
+            </li>
+                  <li class="none">
+                          <a href="../../releases/index.html" title="Releasing Components">Releasing Components</a>
+            </li>
+                  <li class="none">
+                          <a href="http://wiki.apache.org/commons/FrontPage" class="externalLink" title="Wiki">Wiki</a>
+            </li>
+          </ul>
+                       <h5>ASF</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="http://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How the ASF works">How the ASF works</a>
+            </li>
+                  <li class="none">
+                          <a href="http://www.apache.org/foundation/getinvolved.html" class="externalLink" title="Get Involved">Get Involved</a>
+            </li>
+                  <li class="none">
+                          <a href="http://www.apache.org/dev/" class="externalLink" title="Developer Resources">Developer Resources</a>
+            </li>
+                  <li class="none">
+                          <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsorship">Sponsorship</a>
+            </li>
+                  <li class="none">
+                          <a href="http://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks">Thanks</a>
+            </li>
+          </ul>
+                                                                                                                   <a href="http://www.apache.org/events/current-event.html" title="ApacheCon" class="poweredBy">
+        <img class="poweredBy"  alt="ApacheCon" src="http://www.apache.org/events/current-event-125x125.png"    />
+      </a>
+                                                                                                    <a href="http://maven.apache.org/" title="Maven" class="poweredBy">
+        <img class="poweredBy"  alt="Maven" src="http://maven.apache.org/images/logos/maven-feather.png"    />
+      </a>
+                       
+                
+            </div>
+    </div>
+    <div id="bodyColumn">
+      <div id="contentBox">
+        <div class="section"><h2>Verifier Ant Task<a name="Verifier_Ant_Task"></a></h2><p>This task is packaged in <tt>commons-openpgp.jar</tt>. It will use the BouncyCastle JARs at runtime. It has been tested with <tt>bcpg-jdk12-134.jar</tt> and <tt>bcprov-jdk12-134.jar</tt>.</p><p>The <tt>verifier</tt> task can verify one file at a time.</p><div class="section"><h3>Attributes<a name="Attributes"></a></h3><table border="1" class="bodyTable"><tr class="a"><th align="left">Attribute</th><th align="left">Description</th><th align="left">Required</th></tr><tr class="b"><td align="left"><tt>secring</tt></td><td align="left">Secret key ring file.</td><td align="left">Yes</td></tr><tr class="a"><td align="left"><tt>pubring</tt></td><td align="left">Public key ring file.</td><td align="left">Yes</td></tr><tr class="b"><td align="left"><tt>password</tt></td><td align="left">Password of the secret key ring.</td><td align="left">Yes</td></tr><tr class="a"><td align="left"><tt>asciiarmor</tt><
 /td><td align="left">Whether the signature is ASCII armored. Boolean, defaults to <tt>true</tt>.</td><td align="left">No</td></tr><tr class="b"><td align="left"><tt>artefact</tt></td><td align="left">The file that you want to verify.</td><td align="left">Yes</td></tr><tr class="a"><td align="left"><tt>verifyproperty</tt></td><td align="left">The name of the property that will hold the result of the verification.</td><td align="left">Yes</td></tr></table><div class="section"><h4><tt>mapper</tt> nested element<a name="mapper_nested_element"></a></h4><p>The task may take a <a class="externalLink" href="http://ant.apache.org/manual/CoreTypes/mapper.html"> mapper</a> nested element. This nested element tells the task how the signature files should be named. If you do not supply this element, the signature files should be located in the same directory as the file that you verify. An ending of <tt>.asc</tt> will be used for the file name for ASCII armored input (the default). If you set <t
 t>asciiarmor</tt> to false, the ending will be <tt>.sig</tt></p></div></div><div class="section"><h3>Example<a name="Example"></a></h3><div><pre>&lt;project name=&quot;test1&quot; xmlns:openpgp=&quot;antlib:org.apache.commons.openpgp.ant&quot;&gt;
+  &lt;property environment=&quot;env&quot;/&gt;
+  &lt;taskdef resource=&quot;org/apache/commons/openpgp/ant/antlib.xml&quot; uri=&quot;antlib:org.apache.commons.openpgp.ant&quot;/&gt;
+  &lt;openpgp:verifier secring=&quot;${env.USERPROFILE}\Application Data\gnupg\secring.gpg&quot;
+    pubring=&quot;${env.USERPROFILE}\Application Data\gnupg\pubring.gpg&quot;
+    password=&quot;secret&quot;
+    artefact=&quot;target\commons-openpgp-1.0-SNAPSHOT.jar&quot;
+    asciiarmor=&quot;true&quot;
+    verifyproperty=&quot;isValidSignature&quot;/&gt;
+  &lt;echo message=&quot;The signature is valid: ${isValidSignature}&quot;/&gt;
+&lt;/project&gt;
+</pre></div></div></div>
+      </div>
+    </div>
+    <div class="clear">
+      <hr/>
+    </div>
+    <div id="footer">
+      <div class="center">Copyright &#169;                    2005-2013
+                        <a href="http://www.apache.org/">The Apache Software Foundation</a>.
+            All Rights Reserved.      
+                
+      </div>
+                          
+<div class="center">Apache Commons, Apache Commons OpenPGP (Sandbox), Apache, the Apache feather logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation.
+      All other marks mentioned may be trademarks or registered trademarks of their respective owners.</div>
+                <div class="clear">
+        <hr/>
+      </div>
+    </div>
+  </body>
+</html>
\ No newline at end of file

Propchange: websites/production/commons/content/sandbox/commons-openpgp/verifier.html
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: websites/production/commons/content/sandbox/commons-openpgp/xref-test/allclasses-frame.html
==============================================================================
--- websites/production/commons/content/sandbox/commons-openpgp/xref-test/allclasses-frame.html (original)
+++ websites/production/commons/content/sandbox/commons-openpgp/xref-test/allclasses-frame.html Sat Aug 10 22:25:17 2013
@@ -2,7 +2,7 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
 <html xml:lang="en" lang="en">
 	<head>
-		<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+		<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
 		<title>All Classes</title>
 		<link rel="stylesheet" type="text/css" href="stylesheet.css" title="style" />
     </head>
@@ -12,9 +12,15 @@
 
 		<ul>
 						<li>
+				<a href="org/apache/commons/openpgp/BouncyCastleKeyRingTest.html" target="classFrame">BouncyCastleKeyRingTest</a>
+			</li>
+						<li>
 				<a href="org/apache/commons/openpgp/BouncyCastleOpenPgpSignerTest.html" target="classFrame">BouncyCastleOpenPgpSignerTest</a>
 			</li>
+						<li>
+				<a href="org/apache/commons/openpgp/BouncyCastleOpenPgpStreamingSignerTest.html" target="classFrame">BouncyCastleOpenPgpStreamingSignerTest</a>
+			</li>
 			      </ul>
 
     </body>
-  </html>
+  </html>
\ No newline at end of file

Modified: websites/production/commons/content/sandbox/commons-openpgp/xref-test/index.html
==============================================================================
--- websites/production/commons/content/sandbox/commons-openpgp/xref-test/index.html (original)
+++ websites/production/commons/content/sandbox/commons-openpgp/xref-test/index.html Sat Aug 10 22:25:17 2013
@@ -1,8 +1,8 @@
 
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "DTD/xhtml1-frameset.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
 <html xml:lang="en" lang="en">
 	<head>
-		<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+		<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
 		<title>Commons OpenPGP (Sandbox) 1.0-SNAPSHOT Reference</title>
 	</head>
     <frameset cols="20%,80%">
@@ -21,4 +21,3 @@
         </noframes>
     </frameset>
 </html>
-



Mime
View raw message