You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by de...@apache.org on 2013/08/11 00:25:21 UTC
svn commit: r874057 [5/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/c...
Modified: websites/production/commons/content/sandbox/commons-openpgp/apidocs/org/apache/commons/openpgp/class-use/SignatureStatus.html
==============================================================================
--- websites/production/commons/content/sandbox/commons-openpgp/apidocs/org/apache/commons/openpgp/class-use/SignatureStatus.html (original)
+++ websites/production/commons/content/sandbox/commons-openpgp/apidocs/org/apache/commons/openpgp/class-use/SignatureStatus.html Sat Aug 10 22:25:17 2013
@@ -2,8 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.5.0_07) on Sat May 17 17:36:15 BST 2008 -->
-<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>
Uses of Class org.apache.commons.openpgp.SignatureStatus (Commons OpenPGP (Sandbox) 1.0-SNAPSHOT API)
</TITLE>
@@ -55,7 +54,7 @@ function windowTitle()
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../../../index.html?org/apache/commons/openpgp/\class-useSignatureStatus.html" target="_top"><B>FRAMES</B></A>
+ <A HREF="../../../../../index.html?org/apache/commons/openpgp/class-use/SignatureStatus.html" target="_top"><B>FRAMES</B></A>
<A HREF="SignatureStatus.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
@@ -158,18 +157,9 @@ Uses of <A HREF="../../../../../org/apac
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../org/apache/commons/openpgp/SignatureStatus.html" title="class in org.apache.commons.openpgp">SignatureStatus</A></CODE></FONT></TD>
-<TD><CODE><B>BouncyCastleOpenPgpStreamingSignatureVerifier.</B><B><A HREF="../../../../../org/apache/commons/openpgp/BouncyCastleOpenPgpStreamingSignatureVerifier.html#verify()">verify</A></B>()</CODE>
-
-<BR>
- </TD>
-</TR>
-<TR BGCOLOR="white" CLASS="TableRowColor">
-<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
-<CODE> <A HREF="../../../../../org/apache/commons/openpgp/SignatureStatus.html" title="class in org.apache.commons.openpgp">SignatureStatus</A></CODE></FONT></TD>
-<TD><CODE><B>OpenPgpSignatureVerifier.</B><B><A HREF="../../../../../org/apache/commons/openpgp/OpenPgpSignatureVerifier.html#verifyDetachedSignature(java.io.InputStream, java.io.InputStream, org.apache.commons.openpgp.KeyRing, boolean)">verifyDetachedSignature</A></B>(java.io.InputStream data,
- java.io.InputStream signature,
- <A HREF="../../../../../org/apache/commons/openpgp/KeyRing.html" title="interface in org.apache.commons.openpgp">KeyRing</A> keyRing,
- boolean asciiArmored)</CODE>
+<TD><CODE><B>OpenPgpSignatureVerifier.</B><B><A HREF="../../../../../org/apache/commons/openpgp/OpenPgpSignatureVerifier.html#verifyDetachedSignature(java.io.InputStream, java.io.InputStream, org.apache.commons.openpgp.KeyRing)">verifyDetachedSignature</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A> data,
+ <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A> signature,
+ <A HREF="../../../../../org/apache/commons/openpgp/KeyRing.html" title="interface in org.apache.commons.openpgp">KeyRing</A> keyRing)</CODE>
<BR>
Verify a piece of data against a detached signature.</TD>
@@ -177,10 +167,9 @@ Uses of <A HREF="../../../../../org/apac
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../org/apache/commons/openpgp/SignatureStatus.html" title="class in org.apache.commons.openpgp">SignatureStatus</A></CODE></FONT></TD>
-<TD><CODE><B>BouncyCastleOpenPgpSignatureVerifier.</B><B><A HREF="../../../../../org/apache/commons/openpgp/BouncyCastleOpenPgpSignatureVerifier.html#verifyDetachedSignature(java.io.InputStream, java.io.InputStream, org.apache.commons.openpgp.KeyRing, boolean)">verifyDetachedSignature</A></B>(java.io.InputStream data,
- java.io.InputStream signature,
- <A HREF="../../../../../org/apache/commons/openpgp/KeyRing.html" title="interface in org.apache.commons.openpgp">KeyRing</A> keyRing,
- boolean asciiArmored)</CODE>
+<TD><CODE><B>BouncyCastleOpenPgpSignatureVerifier.</B><B><A HREF="../../../../../org/apache/commons/openpgp/BouncyCastleOpenPgpSignatureVerifier.html#verifyDetachedSignature(java.io.InputStream, java.io.InputStream, org.apache.commons.openpgp.KeyRing)">verifyDetachedSignature</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A> data,
+ <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A> signature,
+ <A HREF="../../../../../org/apache/commons/openpgp/KeyRing.html" title="interface in org.apache.commons.openpgp">KeyRing</A> keyRing)</CODE>
<BR>
</TD>
@@ -188,8 +177,8 @@ Uses of <A HREF="../../../../../org/apac
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../org/apache/commons/openpgp/SignatureStatus.html" title="class in org.apache.commons.openpgp">SignatureStatus</A></CODE></FONT></TD>
-<TD><CODE><B>OpenPgpSignatureVerifier.</B><B><A HREF="../../../../../org/apache/commons/openpgp/OpenPgpSignatureVerifier.html#verifySignature(java.io.InputStream, org.apache.commons.openpgp.KeyRing)">verifySignature</A></B>(java.io.InputStream data,
- <A HREF="../../../../../org/apache/commons/openpgp/KeyRing.html" title="interface in org.apache.commons.openpgp">KeyRing</A> keyRing)</CODE>
+<TD><CODE><B>OpenPgpSignatureVerifier.</B><B><A HREF="../../../../../org/apache/commons/openpgp/OpenPgpSignatureVerifier.html#verifySignature(java.io.InputStream, org.apache.commons.openpgp.KeyRing)">verifySignature</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A> data,
+ <A HREF="../../../../../org/apache/commons/openpgp/KeyRing.html" title="interface in org.apache.commons.openpgp">KeyRing</A> keyRing)</CODE>
<BR>
Verify a piece of data that was signed with OpenPGP.</TD>
@@ -197,8 +186,8 @@ Uses of <A HREF="../../../../../org/apac
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../org/apache/commons/openpgp/SignatureStatus.html" title="class in org.apache.commons.openpgp">SignatureStatus</A></CODE></FONT></TD>
-<TD><CODE><B>BouncyCastleOpenPgpSignatureVerifier.</B><B><A HREF="../../../../../org/apache/commons/openpgp/BouncyCastleOpenPgpSignatureVerifier.html#verifySignature(java.io.InputStream, org.apache.commons.openpgp.KeyRing)">verifySignature</A></B>(java.io.InputStream data,
- <A HREF="../../../../../org/apache/commons/openpgp/KeyRing.html" title="interface in org.apache.commons.openpgp">KeyRing</A> keyRing)</CODE>
+<TD><CODE><B>BouncyCastleOpenPgpSignatureVerifier.</B><B><A HREF="../../../../../org/apache/commons/openpgp/BouncyCastleOpenPgpSignatureVerifier.html#verifySignature(java.io.InputStream, org.apache.commons.openpgp.KeyRing)">verifySignature</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A> data,
+ <A HREF="../../../../../org/apache/commons/openpgp/KeyRing.html" title="interface in org.apache.commons.openpgp">KeyRing</A> keyRing)</CODE>
<BR>
</TD>
@@ -239,7 +228,7 @@ Uses of <A HREF="../../../../../org/apac
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../../../index.html?org/apache/commons/openpgp/\class-useSignatureStatus.html" target="_top"><B>FRAMES</B></A>
+ <A HREF="../../../../../index.html?org/apache/commons/openpgp/class-use/SignatureStatus.html" target="_top"><B>FRAMES</B></A>
<A HREF="SignatureStatus.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
@@ -260,6 +249,6 @@ Uses of <A HREF="../../../../../org/apac
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
-Copyright © 2005-2008 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
+Copyright © 2005-2013 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
</BODY>
-</HTML>
+</HTML>
\ No newline at end of file
Modified: websites/production/commons/content/sandbox/commons-openpgp/apidocs/org/apache/commons/openpgp/class-use/UnknownKeyException.html
==============================================================================
--- websites/production/commons/content/sandbox/commons-openpgp/apidocs/org/apache/commons/openpgp/class-use/UnknownKeyException.html (original)
+++ websites/production/commons/content/sandbox/commons-openpgp/apidocs/org/apache/commons/openpgp/class-use/UnknownKeyException.html Sat Aug 10 22:25:17 2013
@@ -2,8 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.5.0_07) on Sat May 17 17:36:15 BST 2008 -->
-<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>
Uses of Class org.apache.commons.openpgp.UnknownKeyException (Commons OpenPGP (Sandbox) 1.0-SNAPSHOT API)
</TITLE>
@@ -55,7 +54,7 @@ function windowTitle()
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../../../index.html?org/apache/commons/openpgp/\class-useUnknownKeyException.html" target="_top"><B>FRAMES</B></A>
+ <A HREF="../../../../../index.html?org/apache/commons/openpgp/class-use/UnknownKeyException.html" target="_top"><B>FRAMES</B></A>
<A HREF="UnknownKeyException.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
@@ -110,10 +109,9 @@ Uses of <A HREF="../../../../../org/apac
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../org/apache/commons/openpgp/SignatureStatus.html" title="class in org.apache.commons.openpgp">SignatureStatus</A></CODE></FONT></TD>
-<TD><CODE><B>OpenPgpSignatureVerifier.</B><B><A HREF="../../../../../org/apache/commons/openpgp/OpenPgpSignatureVerifier.html#verifyDetachedSignature(java.io.InputStream, java.io.InputStream, org.apache.commons.openpgp.KeyRing, boolean)">verifyDetachedSignature</A></B>(java.io.InputStream data,
- java.io.InputStream signature,
- <A HREF="../../../../../org/apache/commons/openpgp/KeyRing.html" title="interface in org.apache.commons.openpgp">KeyRing</A> keyRing,
- boolean asciiArmored)</CODE>
+<TD><CODE><B>OpenPgpSignatureVerifier.</B><B><A HREF="../../../../../org/apache/commons/openpgp/OpenPgpSignatureVerifier.html#verifyDetachedSignature(java.io.InputStream, java.io.InputStream, org.apache.commons.openpgp.KeyRing)">verifyDetachedSignature</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A> data,
+ <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A> signature,
+ <A HREF="../../../../../org/apache/commons/openpgp/KeyRing.html" title="interface in org.apache.commons.openpgp">KeyRing</A> keyRing)</CODE>
<BR>
Verify a piece of data against a detached signature.</TD>
@@ -121,10 +119,9 @@ Uses of <A HREF="../../../../../org/apac
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../org/apache/commons/openpgp/SignatureStatus.html" title="class in org.apache.commons.openpgp">SignatureStatus</A></CODE></FONT></TD>
-<TD><CODE><B>BouncyCastleOpenPgpSignatureVerifier.</B><B><A HREF="../../../../../org/apache/commons/openpgp/BouncyCastleOpenPgpSignatureVerifier.html#verifyDetachedSignature(java.io.InputStream, java.io.InputStream, org.apache.commons.openpgp.KeyRing, boolean)">verifyDetachedSignature</A></B>(java.io.InputStream data,
- java.io.InputStream signature,
- <A HREF="../../../../../org/apache/commons/openpgp/KeyRing.html" title="interface in org.apache.commons.openpgp">KeyRing</A> keyRing,
- boolean asciiArmored)</CODE>
+<TD><CODE><B>BouncyCastleOpenPgpSignatureVerifier.</B><B><A HREF="../../../../../org/apache/commons/openpgp/BouncyCastleOpenPgpSignatureVerifier.html#verifyDetachedSignature(java.io.InputStream, java.io.InputStream, org.apache.commons.openpgp.KeyRing)">verifyDetachedSignature</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A> data,
+ <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A> signature,
+ <A HREF="../../../../../org/apache/commons/openpgp/KeyRing.html" title="interface in org.apache.commons.openpgp">KeyRing</A> keyRing)</CODE>
<BR>
</TD>
@@ -132,8 +129,8 @@ Uses of <A HREF="../../../../../org/apac
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../org/apache/commons/openpgp/SignatureStatus.html" title="class in org.apache.commons.openpgp">SignatureStatus</A></CODE></FONT></TD>
-<TD><CODE><B>OpenPgpSignatureVerifier.</B><B><A HREF="../../../../../org/apache/commons/openpgp/OpenPgpSignatureVerifier.html#verifySignature(java.io.InputStream, org.apache.commons.openpgp.KeyRing)">verifySignature</A></B>(java.io.InputStream data,
- <A HREF="../../../../../org/apache/commons/openpgp/KeyRing.html" title="interface in org.apache.commons.openpgp">KeyRing</A> keyRing)</CODE>
+<TD><CODE><B>OpenPgpSignatureVerifier.</B><B><A HREF="../../../../../org/apache/commons/openpgp/OpenPgpSignatureVerifier.html#verifySignature(java.io.InputStream, org.apache.commons.openpgp.KeyRing)">verifySignature</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A> data,
+ <A HREF="../../../../../org/apache/commons/openpgp/KeyRing.html" title="interface in org.apache.commons.openpgp">KeyRing</A> keyRing)</CODE>
<BR>
Verify a piece of data that was signed with OpenPGP.</TD>
@@ -141,8 +138,8 @@ Uses of <A HREF="../../../../../org/apac
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../org/apache/commons/openpgp/SignatureStatus.html" title="class in org.apache.commons.openpgp">SignatureStatus</A></CODE></FONT></TD>
-<TD><CODE><B>BouncyCastleOpenPgpSignatureVerifier.</B><B><A HREF="../../../../../org/apache/commons/openpgp/BouncyCastleOpenPgpSignatureVerifier.html#verifySignature(java.io.InputStream, org.apache.commons.openpgp.KeyRing)">verifySignature</A></B>(java.io.InputStream data,
- <A HREF="../../../../../org/apache/commons/openpgp/KeyRing.html" title="interface in org.apache.commons.openpgp">KeyRing</A> keyRing)</CODE>
+<TD><CODE><B>BouncyCastleOpenPgpSignatureVerifier.</B><B><A HREF="../../../../../org/apache/commons/openpgp/BouncyCastleOpenPgpSignatureVerifier.html#verifySignature(java.io.InputStream, org.apache.commons.openpgp.KeyRing)">verifySignature</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A> data,
+ <A HREF="../../../../../org/apache/commons/openpgp/KeyRing.html" title="interface in org.apache.commons.openpgp">KeyRing</A> keyRing)</CODE>
<BR>
</TD>
@@ -183,7 +180,7 @@ Uses of <A HREF="../../../../../org/apac
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../../../index.html?org/apache/commons/openpgp/\class-useUnknownKeyException.html" target="_top"><B>FRAMES</B></A>
+ <A HREF="../../../../../index.html?org/apache/commons/openpgp/class-use/UnknownKeyException.html" target="_top"><B>FRAMES</B></A>
<A HREF="UnknownKeyException.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
@@ -204,6 +201,6 @@ Uses of <A HREF="../../../../../org/apac
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
-Copyright © 2005-2008 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
+Copyright © 2005-2013 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
</BODY>
-</HTML>
+</HTML>
\ No newline at end of file
Modified: websites/production/commons/content/sandbox/commons-openpgp/apidocs/org/apache/commons/openpgp/package-frame.html
==============================================================================
--- websites/production/commons/content/sandbox/commons-openpgp/apidocs/org/apache/commons/openpgp/package-frame.html (original)
+++ websites/production/commons/content/sandbox/commons-openpgp/apidocs/org/apache/commons/openpgp/package-frame.html Sat Aug 10 22:25:17 2013
@@ -2,8 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.5.0_07) on Sat May 17 17:36:15 BST 2008 -->
-<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>
org.apache.commons.openpgp (Commons OpenPGP (Sandbox) 1.0-SNAPSHOT API)
</TITLE>
@@ -72,4 +71,4 @@ Exceptions</FONT>
</BODY>
-</HTML>
+</HTML>
\ No newline at end of file
Modified: websites/production/commons/content/sandbox/commons-openpgp/apidocs/org/apache/commons/openpgp/package-summary.html
==============================================================================
--- websites/production/commons/content/sandbox/commons-openpgp/apidocs/org/apache/commons/openpgp/package-summary.html (original)
+++ websites/production/commons/content/sandbox/commons-openpgp/apidocs/org/apache/commons/openpgp/package-summary.html Sat Aug 10 22:25:17 2013
@@ -2,8 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.5.0_07) on Sat May 17 17:36:15 BST 2008 -->
-<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>
org.apache.commons.openpgp (Commons OpenPGP (Sandbox) 1.0-SNAPSHOT API)
</TITLE>
@@ -218,6 +217,6 @@ Package org.apache.commons.openpgp
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
-Copyright © 2005-2008 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
+Copyright © 2005-2013 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
</BODY>
-</HTML>
+</HTML>
\ No newline at end of file
Modified: websites/production/commons/content/sandbox/commons-openpgp/apidocs/org/apache/commons/openpgp/package-tree.html
==============================================================================
--- websites/production/commons/content/sandbox/commons-openpgp/apidocs/org/apache/commons/openpgp/package-tree.html (original)
+++ websites/production/commons/content/sandbox/commons-openpgp/apidocs/org/apache/commons/openpgp/package-tree.html Sat Aug 10 22:25:17 2013
@@ -2,8 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.5.0_07) on Sat May 17 17:36:15 BST 2008 -->
-<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>
org.apache.commons.openpgp Class Hierarchy (Commons OpenPGP (Sandbox) 1.0-SNAPSHOT API)
</TITLE>
@@ -88,15 +87,15 @@ Hierarchy For Package org.apache.commons
Class Hierarchy
</H2>
<UL>
-<LI TYPE="circle">java.lang.Object<UL>
+<LI TYPE="circle">java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang"><B>Object</B></A><UL>
<LI TYPE="circle">org.apache.commons.openpgp.<A HREF="../../../../org/apache/commons/openpgp/BouncyCastleKeyRing.html" title="class in org.apache.commons.openpgp"><B>BouncyCastleKeyRing</B></A> (implements org.apache.commons.openpgp.<A HREF="../../../../org/apache/commons/openpgp/KeyRing.html" title="interface in org.apache.commons.openpgp">KeyRing</A>)
<LI TYPE="circle">org.apache.commons.openpgp.<A HREF="../../../../org/apache/commons/openpgp/BouncyCastleOpenPgpSignatureVerifier.html" title="class in org.apache.commons.openpgp"><B>BouncyCastleOpenPgpSignatureVerifier</B></A> (implements org.apache.commons.openpgp.<A HREF="../../../../org/apache/commons/openpgp/OpenPgpSignatureVerifier.html" title="interface in org.apache.commons.openpgp">OpenPgpSignatureVerifier</A>)
<LI TYPE="circle">org.apache.commons.openpgp.<A HREF="../../../../org/apache/commons/openpgp/BouncyCastleOpenPgpSigner.html" title="class in org.apache.commons.openpgp"><B>BouncyCastleOpenPgpSigner</B></A> (implements org.apache.commons.openpgp.<A HREF="../../../../org/apache/commons/openpgp/OpenPgpSigner.html" title="interface in org.apache.commons.openpgp">OpenPgpSigner</A>)
<LI TYPE="circle">org.apache.commons.openpgp.<A HREF="../../../../org/apache/commons/openpgp/BouncyCastleOpenPgpStreamingSignatureVerifier.html" title="class in org.apache.commons.openpgp"><B>BouncyCastleOpenPgpStreamingSignatureVerifier</B></A> (implements org.apache.commons.openpgp.<A HREF="../../../../org/apache/commons/openpgp/OpenPgpStreamingSignatureVerifier.html" title="interface in org.apache.commons.openpgp">OpenPgpStreamingSignatureVerifier</A>)
<LI TYPE="circle">org.apache.commons.openpgp.<A HREF="../../../../org/apache/commons/openpgp/BouncyCastleOpenPgpStreamingSigner.html" title="class in org.apache.commons.openpgp"><B>BouncyCastleOpenPgpStreamingSigner</B></A> (implements org.apache.commons.openpgp.<A HREF="../../../../org/apache/commons/openpgp/OpenPgpStreamingSigner.html" title="interface in org.apache.commons.openpgp">OpenPgpStreamingSigner</A>)
-<LI TYPE="circle">org.apache.commons.openpgp.<A HREF="../../../../org/apache/commons/openpgp/SignatureStatus.html" title="class in org.apache.commons.openpgp"><B>SignatureStatus</B></A><LI TYPE="circle">java.lang.Throwable (implements java.io.Serializable)
+<LI TYPE="circle">org.apache.commons.openpgp.<A HREF="../../../../org/apache/commons/openpgp/SignatureStatus.html" title="class in org.apache.commons.openpgp"><B>SignatureStatus</B></A><LI TYPE="circle">java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Throwable.html" title="class or interface in java.lang"><B>Throwable</B></A> (implements java.io.<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A>)
<UL>
-<LI TYPE="circle">java.lang.Exception<UL>
+<LI TYPE="circle">java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html" title="class or interface in java.lang"><B>Exception</B></A><UL>
<LI TYPE="circle">org.apache.commons.openpgp.<A HREF="../../../../org/apache/commons/openpgp/OpenPgpException.html" title="class in org.apache.commons.openpgp"><B>OpenPgpException</B></A><UL>
<LI TYPE="circle">org.apache.commons.openpgp.<A HREF="../../../../org/apache/commons/openpgp/UnknownKeyException.html" title="class in org.apache.commons.openpgp"><B>UnknownKeyException</B></A></UL>
</UL>
@@ -162,6 +161,6 @@ Interface Hierarchy
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
-Copyright © 2005-2008 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
+Copyright © 2005-2013 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
</BODY>
-</HTML>
+</HTML>
\ No newline at end of file
Modified: websites/production/commons/content/sandbox/commons-openpgp/apidocs/org/apache/commons/openpgp/package-use.html
==============================================================================
--- websites/production/commons/content/sandbox/commons-openpgp/apidocs/org/apache/commons/openpgp/package-use.html (original)
+++ websites/production/commons/content/sandbox/commons-openpgp/apidocs/org/apache/commons/openpgp/package-use.html Sat Aug 10 22:25:17 2013
@@ -2,8 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.5.0_07) on Sat May 17 17:36:15 BST 2008 -->
-<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>
Uses of Package org.apache.commons.openpgp (Commons OpenPGP (Sandbox) 1.0-SNAPSHOT API)
</TITLE>
@@ -204,6 +203,6 @@ Classes in <A HREF="../../../../org/apac
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
-Copyright © 2005-2008 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
+Copyright © 2005-2013 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
</BODY>
-</HTML>
+</HTML>
\ No newline at end of file
Modified: websites/production/commons/content/sandbox/commons-openpgp/apidocs/overview-frame.html
==============================================================================
--- websites/production/commons/content/sandbox/commons-openpgp/apidocs/overview-frame.html (original)
+++ websites/production/commons/content/sandbox/commons-openpgp/apidocs/overview-frame.html Sat Aug 10 22:25:17 2013
@@ -2,8 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.5.0_07) on Sat May 17 17:36:15 BST 2008 -->
-<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>
Overview (Commons OpenPGP (Sandbox) 1.0-SNAPSHOT API)
</TITLE>
@@ -42,4 +41,4 @@ Packages</FONT>
<P>
</BODY>
-</HTML>
+</HTML>
\ No newline at end of file
Modified: websites/production/commons/content/sandbox/commons-openpgp/apidocs/overview-summary.html
==============================================================================
--- websites/production/commons/content/sandbox/commons-openpgp/apidocs/overview-summary.html (original)
+++ websites/production/commons/content/sandbox/commons-openpgp/apidocs/overview-summary.html Sat Aug 10 22:25:17 2013
@@ -2,8 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.5.0_07) on Sat May 17 17:36:15 BST 2008 -->
-<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>
Overview (Commons OpenPGP (Sandbox) 1.0-SNAPSHOT API)
</TITLE>
@@ -153,6 +152,6 @@ Commons OpenPGP (Sandbox) 1.0-SNAPSHOT A
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
-Copyright © 2005-2008 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
+Copyright © 2005-2013 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
</BODY>
-</HTML>
+</HTML>
\ No newline at end of file
Modified: websites/production/commons/content/sandbox/commons-openpgp/apidocs/overview-tree.html
==============================================================================
--- websites/production/commons/content/sandbox/commons-openpgp/apidocs/overview-tree.html (original)
+++ websites/production/commons/content/sandbox/commons-openpgp/apidocs/overview-tree.html Sat Aug 10 22:25:17 2013
@@ -2,8 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.5.0_07) on Sat May 17 17:36:15 BST 2008 -->
-<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>
Class Hierarchy (Commons OpenPGP (Sandbox) 1.0-SNAPSHOT API)
</TITLE>
@@ -87,19 +86,20 @@ Hierarchy For All Packages</H2>
Class Hierarchy
</H2>
<UL>
-<LI TYPE="circle">java.lang.Object<UL>
+<LI TYPE="circle">java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang"><B>Object</B></A><UL>
<LI TYPE="circle">org.apache.commons.openpgp.<A HREF="org/apache/commons/openpgp/BouncyCastleKeyRing.html" title="class in org.apache.commons.openpgp"><B>BouncyCastleKeyRing</B></A> (implements org.apache.commons.openpgp.<A HREF="org/apache/commons/openpgp/KeyRing.html" title="interface in org.apache.commons.openpgp">KeyRing</A>)
<LI TYPE="circle">org.apache.commons.openpgp.<A HREF="org/apache/commons/openpgp/BouncyCastleOpenPgpSignatureVerifier.html" title="class in org.apache.commons.openpgp"><B>BouncyCastleOpenPgpSignatureVerifier</B></A> (implements org.apache.commons.openpgp.<A HREF="org/apache/commons/openpgp/OpenPgpSignatureVerifier.html" title="interface in org.apache.commons.openpgp">OpenPgpSignatureVerifier</A>)
<LI TYPE="circle">org.apache.commons.openpgp.<A HREF="org/apache/commons/openpgp/BouncyCastleOpenPgpSigner.html" title="class in org.apache.commons.openpgp"><B>BouncyCastleOpenPgpSigner</B></A> (implements org.apache.commons.openpgp.<A HREF="org/apache/commons/openpgp/OpenPgpSigner.html" title="interface in org.apache.commons.openpgp">OpenPgpSigner</A>)
<LI TYPE="circle">org.apache.commons.openpgp.<A HREF="org/apache/commons/openpgp/BouncyCastleOpenPgpStreamingSignatureVerifier.html" title="class in org.apache.commons.openpgp"><B>BouncyCastleOpenPgpStreamingSignatureVerifier</B></A> (implements org.apache.commons.openpgp.<A HREF="org/apache/commons/openpgp/OpenPgpStreamingSignatureVerifier.html" title="interface in org.apache.commons.openpgp">OpenPgpStreamingSignatureVerifier</A>)
<LI TYPE="circle">org.apache.commons.openpgp.<A HREF="org/apache/commons/openpgp/BouncyCastleOpenPgpStreamingSigner.html" title="class in org.apache.commons.openpgp"><B>BouncyCastleOpenPgpStreamingSigner</B></A> (implements org.apache.commons.openpgp.<A HREF="org/apache/commons/openpgp/OpenPgpStreamingSigner.html" title="interface in org.apache.commons.openpgp">OpenPgpStreamingSigner</A>)
-<LI TYPE="circle">org.apache.tools.ant.ProjectComponent<UL>
+<LI TYPE="circle">org.apache.tools.ant.ProjectComponent (implements java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Cloneable.html" title="class or interface in java.lang">Cloneable</A>)
+<UL>
<LI TYPE="circle">org.apache.tools.ant.Task<UL>
-<LI TYPE="circle">org.apache.commons.openpgp.ant.<A HREF="org/apache/commons/openpgp/ant/OpenPgpSignerTask.html" title="class in org.apache.commons.openpgp.ant"><B>OpenPgpSignerTask</B></A></UL>
+<LI TYPE="circle">org.apache.commons.openpgp.ant.<A HREF="org/apache/commons/openpgp/ant/OpenPgpSignerTask.html" title="class in org.apache.commons.openpgp.ant"><B>OpenPgpSignerTask</B></A><LI TYPE="circle">org.apache.commons.openpgp.ant.<A HREF="org/apache/commons/openpgp/ant/OpenPgpVerifierTask.html" title="class in org.apache.commons.openpgp.ant"><B>OpenPgpVerifierTask</B></A></UL>
</UL>
-<LI TYPE="circle">org.apache.commons.openpgp.<A HREF="org/apache/commons/openpgp/SignatureStatus.html" title="class in org.apache.commons.openpgp"><B>SignatureStatus</B></A><LI TYPE="circle">java.lang.Throwable (implements java.io.Serializable)
+<LI TYPE="circle">org.apache.commons.openpgp.<A HREF="org/apache/commons/openpgp/SignatureStatus.html" title="class in org.apache.commons.openpgp"><B>SignatureStatus</B></A><LI TYPE="circle">java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Throwable.html" title="class or interface in java.lang"><B>Throwable</B></A> (implements java.io.<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A>)
<UL>
-<LI TYPE="circle">java.lang.Exception<UL>
+<LI TYPE="circle">java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html" title="class or interface in java.lang"><B>Exception</B></A><UL>
<LI TYPE="circle">org.apache.commons.openpgp.<A HREF="org/apache/commons/openpgp/OpenPgpException.html" title="class in org.apache.commons.openpgp"><B>OpenPgpException</B></A><UL>
<LI TYPE="circle">org.apache.commons.openpgp.<A HREF="org/apache/commons/openpgp/UnknownKeyException.html" title="class in org.apache.commons.openpgp"><B>UnknownKeyException</B></A></UL>
</UL>
@@ -165,6 +165,6 @@ Interface Hierarchy
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
-Copyright © 2005-2008 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
+Copyright © 2005-2013 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
</BODY>
-</HTML>
+</HTML>
\ No newline at end of file
Modified: websites/production/commons/content/sandbox/commons-openpgp/apidocs/serialized-form.html
==============================================================================
--- websites/production/commons/content/sandbox/commons-openpgp/apidocs/serialized-form.html (original)
+++ websites/production/commons/content/sandbox/commons-openpgp/apidocs/serialized-form.html Sat Aug 10 22:25:17 2013
@@ -2,8 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.5.0_07) on Sat May 17 17:36:15 BST 2008 -->
-<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>
Serialized Form (Commons OpenPGP (Sandbox) 1.0-SNAPSHOT API)
</TITLE>
@@ -94,27 +93,11 @@ Serialized Form</H1>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
-<B>Class <A HREF="org/apache/commons/openpgp/OpenPgpException.html" title="class in org.apache.commons.openpgp">org.apache.commons.openpgp.OpenPgpException</A> extends java.lang.Exception implements Serializable</B></FONT></TH>
+<B>Class <A HREF="org/apache/commons/openpgp/OpenPgpException.html" title="class in org.apache.commons.openpgp">org.apache.commons.openpgp.OpenPgpException</A> extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A> implements Serializable</B></FONT></TH>
</TR>
</TABLE>
<P>
-<A NAME="serializedForm"><!-- --></A>
-<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
-<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
-<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
-<B>Serialized Fields</B></FONT></TH>
-</TR>
-</TABLE>
-
-<H3>
-cause</H3>
-<PRE>
-java.lang.Throwable <B>cause</B></PRE>
-<DL>
-<DL>
-</DL>
-</DL>
<P>
<A NAME="org.apache.commons.openpgp.UnknownKeyException"><!-- --></A>
@@ -182,6 +165,6 @@ java.lang.Throwable <B>cause</B></PRE>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
-Copyright © 2005-2008 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
+Copyright © 2005-2013 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
</BODY>
-</HTML>
+</HTML>
\ No newline at end of file
Added: websites/production/commons/content/sandbox/commons-openpgp/apidocs/src-html/org/apache/commons/openpgp/BouncyCastleKeyRing.html
==============================================================================
--- websites/production/commons/content/sandbox/commons-openpgp/apidocs/src-html/org/apache/commons/openpgp/BouncyCastleKeyRing.html (added)
+++ websites/production/commons/content/sandbox/commons-openpgp/apidocs/src-html/org/apache/commons/openpgp/BouncyCastleKeyRing.html Sat Aug 10 22:25:17 2013
@@ -0,0 +1,205 @@
+<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 java.io.IOException;<a name="line.20"></a>
+<FONT color="green">021</FONT> import java.io.InputStream;<a name="line.21"></a>
+<FONT color="green">022</FONT> import java.util.HashMap;<a name="line.22"></a>
+<FONT color="green">023</FONT> import java.util.Map;<a name="line.23"></a>
+<FONT color="green">024</FONT> <a name="line.24"></a>
+<FONT color="green">025</FONT> import org.bouncycastle.openpgp.PGPException;<a name="line.25"></a>
+<FONT color="green">026</FONT> import org.bouncycastle.openpgp.PGPObjectFactory;<a name="line.26"></a>
+<FONT color="green">027</FONT> import org.bouncycastle.openpgp.PGPPublicKey;<a name="line.27"></a>
+<FONT color="green">028</FONT> import org.bouncycastle.openpgp.PGPPublicKeyRing;<a name="line.28"></a>
+<FONT color="green">029</FONT> import org.bouncycastle.openpgp.PGPSecretKey;<a name="line.29"></a>
+<FONT color="green">030</FONT> import org.bouncycastle.openpgp.PGPSecretKeyRing;<a name="line.30"></a>
+<FONT color="green">031</FONT> import org.bouncycastle.openpgp.PGPUtil;<a name="line.31"></a>
+<FONT color="green">032</FONT> <a name="line.32"></a>
+<FONT color="green">033</FONT> /**<a name="line.33"></a>
+<FONT color="green">034</FONT> * Bouncy Castle implementation of the OpenPGP key ring.<a name="line.34"></a>
+<FONT color="green">035</FONT> * <a name="line.35"></a>
+<FONT color="green">036</FONT> * @author <a href="mailto:brett@apache.org">Brett Porter</a><a name="line.36"></a>
+<FONT color="green">037</FONT> * @todo password is not secure<a name="line.37"></a>
+<FONT color="green">038</FONT> */<a name="line.38"></a>
+<FONT color="green">039</FONT> public class BouncyCastleKeyRing implements KeyRing<a name="line.39"></a>
+<FONT color="green">040</FONT> {<a name="line.40"></a>
+<FONT color="green">041</FONT> private String firstKeyId;<a name="line.41"></a>
+<FONT color="green">042</FONT> <a name="line.42"></a>
+<FONT color="green">043</FONT> private final Map<Long, PGPSecretKey> pgpSec = new HashMap<Long, PGPSecretKey>();<a name="line.43"></a>
+<FONT color="green">044</FONT> <a name="line.44"></a>
+<FONT color="green">045</FONT> private char[] password;<a name="line.45"></a>
+<FONT color="green">046</FONT> <a name="line.46"></a>
+<FONT color="green">047</FONT> private final Map<Long, PGPPublicKey> pgpPub = new HashMap<Long, PGPPublicKey>();<a name="line.47"></a>
+<FONT color="green">048</FONT> <a name="line.48"></a>
+<FONT color="green">049</FONT> private static final long MASK = 0xFFFFFFFFL;<a name="line.49"></a>
+<FONT color="green">050</FONT> <a name="line.50"></a>
+<FONT color="green">051</FONT> public BouncyCastleKeyRing()<a name="line.51"></a>
+<FONT color="green">052</FONT> {<a name="line.52"></a>
+<FONT color="green">053</FONT> }<a name="line.53"></a>
+<FONT color="green">054</FONT> <a name="line.54"></a>
+<FONT color="green">055</FONT> public BouncyCastleKeyRing( InputStream secretKeyRingStream, InputStream publicKeyRingStream, char[] password )<a name="line.55"></a>
+<FONT color="green">056</FONT> throws IOException, PGPException<a name="line.56"></a>
+<FONT color="green">057</FONT> {<a name="line.57"></a>
+<FONT color="green">058</FONT> addSecretKeyRing( secretKeyRingStream, password );<a name="line.58"></a>
+<FONT color="green">059</FONT> <a name="line.59"></a>
+<FONT color="green">060</FONT> addPublicKeyRing( publicKeyRingStream );<a name="line.60"></a>
+<FONT color="green">061</FONT> }<a name="line.61"></a>
+<FONT color="green">062</FONT> <a name="line.62"></a>
+<FONT color="green">063</FONT> public void addPublicKeyRing( InputStream publicKeyRingStream )<a name="line.63"></a>
+<FONT color="green">064</FONT> throws IOException, PGPException<a name="line.64"></a>
+<FONT color="green">065</FONT> {<a name="line.65"></a>
+<FONT color="green">066</FONT> PGPObjectFactory pgpFact = new PGPObjectFactory( PGPUtil.getDecoderStream( publicKeyRingStream ) );<a name="line.66"></a>
+<FONT color="green">067</FONT> Object obj;<a name="line.67"></a>
+<FONT color="green">068</FONT> <a name="line.68"></a>
+<FONT color="green">069</FONT> while ( ( obj = pgpFact.nextObject() ) != null )<a name="line.69"></a>
+<FONT color="green">070</FONT> {<a name="line.70"></a>
+<FONT color="green">071</FONT> if ( !( obj instanceof PGPPublicKeyRing ) )<a name="line.71"></a>
+<FONT color="green">072</FONT> {<a name="line.72"></a>
+<FONT color="green">073</FONT> throw new PGPException( obj.getClass().getName() + " found where PGPPublicKeyRing expected" );<a name="line.73"></a>
+<FONT color="green">074</FONT> }<a name="line.74"></a>
+<FONT color="green">075</FONT> <a name="line.75"></a>
+<FONT color="green">076</FONT> PGPPublicKeyRing keyRing = (PGPPublicKeyRing) obj;<a name="line.76"></a>
+<FONT color="green">077</FONT> long key = keyRing.getPublicKey().getKeyID() & MASK;<a name="line.77"></a>
+<FONT color="green">078</FONT> <a name="line.78"></a>
+<FONT color="green">079</FONT> pgpPub.put( key, keyRing.getPublicKey() );<a name="line.79"></a>
+<FONT color="green">080</FONT> }<a name="line.80"></a>
+<FONT color="green">081</FONT> }<a name="line.81"></a>
+<FONT color="green">082</FONT> <a name="line.82"></a>
+<FONT color="green">083</FONT> public void addSecretKeyRing( InputStream secretKeyRingStream, char[] password )<a name="line.83"></a>
+<FONT color="green">084</FONT> throws IOException, PGPException<a name="line.84"></a>
+<FONT color="green">085</FONT> {<a name="line.85"></a>
+<FONT color="green">086</FONT> PGPObjectFactory pgpFact = new PGPObjectFactory( PGPUtil.getDecoderStream( secretKeyRingStream ) );<a name="line.86"></a>
+<FONT color="green">087</FONT> Object obj;<a name="line.87"></a>
+<FONT color="green">088</FONT> <a name="line.88"></a>
+<FONT color="green">089</FONT> while ( ( obj = pgpFact.nextObject() ) != null )<a name="line.89"></a>
+<FONT color="green">090</FONT> {<a name="line.90"></a>
+<FONT color="green">091</FONT> if ( !( obj instanceof PGPSecretKeyRing ) )<a name="line.91"></a>
+<FONT color="green">092</FONT> {<a name="line.92"></a>
+<FONT color="green">093</FONT> throw new PGPException( obj.getClass().getName() + " found where PGPSecretKeyRing expected" );<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> PGPSecretKeyRing pgpSecret = (PGPSecretKeyRing) obj;<a name="line.96"></a>
+<FONT color="green">097</FONT> long key = pgpSecret.getSecretKey().getKeyID() & MASK;<a name="line.97"></a>
+<FONT color="green">098</FONT> if ( pgpSec.isEmpty() )<a name="line.98"></a>
+<FONT color="green">099</FONT> {<a name="line.99"></a>
+<FONT color="green">100</FONT> // Convert the keyId to a hexadecimal upper case String<a name="line.100"></a>
+<FONT color="green">101</FONT> firstKeyId = Long.toHexString( key ).toUpperCase();<a name="line.101"></a>
+<FONT color="green">102</FONT> }<a name="line.102"></a>
+<FONT color="green">103</FONT> <a name="line.103"></a>
+<FONT color="green">104</FONT> pgpSec.put( key, pgpSecret.getSecretKey() );<a name="line.104"></a>
+<FONT color="green">105</FONT> }<a name="line.105"></a>
+<FONT color="green">106</FONT> <a name="line.106"></a>
+<FONT color="green">107</FONT> this.password = password;<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> public String getFirstKeyId()<a name="line.110"></a>
+<FONT color="green">111</FONT> {<a name="line.111"></a>
+<FONT color="green">112</FONT> return firstKeyId.toString();<a name="line.112"></a>
+<FONT color="green">113</FONT> }<a name="line.113"></a>
+<FONT color="green">114</FONT> <a name="line.114"></a>
+<FONT color="green">115</FONT> public char[] getPassword()<a name="line.115"></a>
+<FONT color="green">116</FONT> {<a name="line.116"></a>
+<FONT color="green">117</FONT> return password;<a name="line.117"></a>
+<FONT color="green">118</FONT> }<a name="line.118"></a>
+<FONT color="green">119</FONT> <a name="line.119"></a>
+<FONT color="green">120</FONT> public PGPSecretKey getSecretKey( String keyId )<a name="line.120"></a>
+<FONT color="green">121</FONT> {<a name="line.121"></a>
+<FONT color="green">122</FONT> return pgpSec.get( Long.valueOf( keyId, 16 ) );<a name="line.122"></a>
+<FONT color="green">123</FONT> }<a name="line.123"></a>
+<FONT color="green">124</FONT> <a name="line.124"></a>
+<FONT color="green">125</FONT> public PGPPublicKey getPublicKey( String keyId )<a name="line.125"></a>
+<FONT color="green">126</FONT> {<a name="line.126"></a>
+<FONT color="green">127</FONT> return pgpPub.get( Long.valueOf( keyId, 16 ) );<a name="line.127"></a>
+<FONT color="green">128</FONT> }<a name="line.128"></a>
+<FONT color="green">129</FONT> <a name="line.129"></a>
+<FONT color="green">130</FONT> public PGPSecretKey getSecretKey( long keyId )<a name="line.130"></a>
+<FONT color="green">131</FONT> {<a name="line.131"></a>
+<FONT color="green">132</FONT> return pgpSec.get(keyId & MASK);<a name="line.132"></a>
+<FONT color="green">133</FONT> }<a name="line.133"></a>
+<FONT color="green">134</FONT> <a name="line.134"></a>
+<FONT color="green">135</FONT> public PGPPublicKey getPublicKey( long keyId )<a name="line.135"></a>
+<FONT color="green">136</FONT> {<a name="line.136"></a>
+<FONT color="green">137</FONT> return pgpPub.get(keyId & MASK);<a name="line.137"></a>
+<FONT color="green">138</FONT> }<a name="line.138"></a>
+<FONT color="green">139</FONT> }<a name="line.139"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>
\ No newline at end of file
Propchange: websites/production/commons/content/sandbox/commons-openpgp/apidocs/src-html/org/apache/commons/openpgp/BouncyCastleKeyRing.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: websites/production/commons/content/sandbox/commons-openpgp/apidocs/src-html/org/apache/commons/openpgp/BouncyCastleOpenPgpSignatureVerifier.html
==============================================================================
--- websites/production/commons/content/sandbox/commons-openpgp/apidocs/src-html/org/apache/commons/openpgp/BouncyCastleOpenPgpSignatureVerifier.html (added)
+++ websites/production/commons/content/sandbox/commons-openpgp/apidocs/src-html/org/apache/commons/openpgp/BouncyCastleOpenPgpSignatureVerifier.html Sat Aug 10 22:25:17 2013
@@ -0,0 +1,127 @@
+<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 java.io.IOException;<a name="line.20"></a>
+<FONT color="green">021</FONT> import java.io.InputStream;<a name="line.21"></a>
+<FONT color="green">022</FONT> <a name="line.22"></a>
+<FONT color="green">023</FONT> /**<a name="line.23"></a>
+<FONT color="green">024</FONT> * Verify signatures using the Bouncy Castle OpenPGP provider.<a name="line.24"></a>
+<FONT color="green">025</FONT> *<a name="line.25"></a>
+<FONT color="green">026</FONT> * @author <a href="mailto:brett@apache.org">Brett Porter</a><a name="line.26"></a>
+<FONT color="green">027</FONT> */<a name="line.27"></a>
+<FONT color="green">028</FONT> public class BouncyCastleOpenPgpSignatureVerifier<a name="line.28"></a>
+<FONT color="green">029</FONT> implements OpenPgpSignatureVerifier<a name="line.29"></a>
+<FONT color="green">030</FONT> {<a name="line.30"></a>
+<FONT color="green">031</FONT> private static final int BUFFER_SIZE = 1024;<a name="line.31"></a>
+<FONT color="green">032</FONT> <a name="line.32"></a>
+<FONT color="green">033</FONT> public SignatureStatus verifySignature( InputStream data, KeyRing keyRing )<a name="line.33"></a>
+<FONT color="green">034</FONT> throws OpenPgpException, UnknownKeyException<a name="line.34"></a>
+<FONT color="green">035</FONT> {<a name="line.35"></a>
+<FONT color="green">036</FONT> // TODO: implement<a name="line.36"></a>
+<FONT color="green">037</FONT> return null; //To change body of implemented methods use File | Settings | File Templates.<a name="line.37"></a>
+<FONT color="green">038</FONT> }<a name="line.38"></a>
+<FONT color="green">039</FONT> <a name="line.39"></a>
+<FONT color="green">040</FONT> public SignatureStatus verifyDetachedSignature( InputStream data, InputStream signature, KeyRing keyRing )<a name="line.40"></a>
+<FONT color="green">041</FONT> throws OpenPgpException, UnknownKeyException, IOException<a name="line.41"></a>
+<FONT color="green">042</FONT> {<a name="line.42"></a>
+<FONT color="green">043</FONT> OpenPgpStreamingSignatureVerifier verifier =<a name="line.43"></a>
+<FONT color="green">044</FONT> new BouncyCastleOpenPgpStreamingSignatureVerifier( signature, keyRing );<a name="line.44"></a>
+<FONT color="green">045</FONT> <a name="line.45"></a>
+<FONT color="green">046</FONT> byte[] buf = new byte[BUFFER_SIZE];<a name="line.46"></a>
+<FONT color="green">047</FONT> <a name="line.47"></a>
+<FONT color="green">048</FONT> int len;<a name="line.48"></a>
+<FONT color="green">049</FONT> do<a name="line.49"></a>
+<FONT color="green">050</FONT> {<a name="line.50"></a>
+<FONT color="green">051</FONT> len = data.read( buf );<a name="line.51"></a>
+<FONT color="green">052</FONT> if ( len > 0 )<a name="line.52"></a>
+<FONT color="green">053</FONT> {<a name="line.53"></a>
+<FONT color="green">054</FONT> verifier.update( buf, 0, len );<a name="line.54"></a>
+<FONT color="green">055</FONT> }<a name="line.55"></a>
+<FONT color="green">056</FONT> }<a name="line.56"></a>
+<FONT color="green">057</FONT> while ( len >= 0 );<a name="line.57"></a>
+<FONT color="green">058</FONT> <a name="line.58"></a>
+<FONT color="green">059</FONT> return verifier.finish();<a name="line.59"></a>
+<FONT color="green">060</FONT> }<a name="line.60"></a>
+<FONT color="green">061</FONT> }<a name="line.61"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>
\ No newline at end of file
Propchange: websites/production/commons/content/sandbox/commons-openpgp/apidocs/src-html/org/apache/commons/openpgp/BouncyCastleOpenPgpSignatureVerifier.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: websites/production/commons/content/sandbox/commons-openpgp/apidocs/src-html/org/apache/commons/openpgp/BouncyCastleOpenPgpSigner.html
==============================================================================
--- websites/production/commons/content/sandbox/commons-openpgp/apidocs/src-html/org/apache/commons/openpgp/BouncyCastleOpenPgpSigner.html (added)
+++ websites/production/commons/content/sandbox/commons-openpgp/apidocs/src-html/org/apache/commons/openpgp/BouncyCastleOpenPgpSigner.html Sat Aug 10 22:25:17 2013
@@ -0,0 +1,128 @@
+<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 java.io.IOException;<a name="line.20"></a>
+<FONT color="green">021</FONT> import java.io.InputStream;<a name="line.21"></a>
+<FONT color="green">022</FONT> import java.io.OutputStream;<a name="line.22"></a>
+<FONT color="green">023</FONT> <a name="line.23"></a>
+<FONT color="green">024</FONT> /**<a name="line.24"></a>
+<FONT color="green">025</FONT> * Bouncy Castle implementation of the OpenPGP signer.<a name="line.25"></a>
+<FONT color="green">026</FONT> *<a name="line.26"></a>
+<FONT color="green">027</FONT> * @author <a href="mailto:brett@apache.org">Brett Porter</a><a name="line.27"></a>
+<FONT color="green">028</FONT> */<a name="line.28"></a>
+<FONT color="green">029</FONT> public class BouncyCastleOpenPgpSigner<a name="line.29"></a>
+<FONT color="green">030</FONT> implements OpenPgpSigner<a name="line.30"></a>
+<FONT color="green">031</FONT> {<a name="line.31"></a>
+<FONT color="green">032</FONT> private static final int BUFFER_SIZE = 1024;<a name="line.32"></a>
+<FONT color="green">033</FONT> <a name="line.33"></a>
+<FONT color="green">034</FONT> public void sign( InputStream data, OutputStream signedOutput, String keyId, KeyRing keyRing, boolean asciiArmor )<a name="line.34"></a>
+<FONT color="green">035</FONT> throws OpenPgpException<a name="line.35"></a>
+<FONT color="green">036</FONT> {<a name="line.36"></a>
+<FONT color="green">037</FONT> // TODO<a name="line.37"></a>
+<FONT color="green">038</FONT> }<a name="line.38"></a>
+<FONT color="green">039</FONT> <a name="line.39"></a>
+<FONT color="green">040</FONT> public void detachedSign( InputStream data, OutputStream signature, String keyId, KeyRing keyRing,<a name="line.40"></a>
+<FONT color="green">041</FONT> boolean asciiArmor )<a name="line.41"></a>
+<FONT color="green">042</FONT> throws OpenPgpException, IOException<a name="line.42"></a>
+<FONT color="green">043</FONT> {<a name="line.43"></a>
+<FONT color="green">044</FONT> OpenPgpStreamingSigner updater =<a name="line.44"></a>
+<FONT color="green">045</FONT> new BouncyCastleOpenPgpStreamingSigner( signature, keyId, keyRing, asciiArmor );<a name="line.45"></a>
+<FONT color="green">046</FONT> <a name="line.46"></a>
+<FONT color="green">047</FONT> byte[] buf = new byte[BUFFER_SIZE];<a name="line.47"></a>
+<FONT color="green">048</FONT> <a name="line.48"></a>
+<FONT color="green">049</FONT> int len;<a name="line.49"></a>
+<FONT color="green">050</FONT> do<a name="line.50"></a>
+<FONT color="green">051</FONT> {<a name="line.51"></a>
+<FONT color="green">052</FONT> len = data.read( buf );<a name="line.52"></a>
+<FONT color="green">053</FONT> if ( len > 0 )<a name="line.53"></a>
+<FONT color="green">054</FONT> {<a name="line.54"></a>
+<FONT color="green">055</FONT> updater.update( buf, 0, len );<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> while ( len >= 0 );<a name="line.58"></a>
+<FONT color="green">059</FONT> <a name="line.59"></a>
+<FONT color="green">060</FONT> updater.finish();<a name="line.60"></a>
+<FONT color="green">061</FONT> }<a name="line.61"></a>
+<FONT color="green">062</FONT> }<a name="line.62"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>
\ No newline at end of file
Propchange: websites/production/commons/content/sandbox/commons-openpgp/apidocs/src-html/org/apache/commons/openpgp/BouncyCastleOpenPgpSigner.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: websites/production/commons/content/sandbox/commons-openpgp/apidocs/src-html/org/apache/commons/openpgp/BouncyCastleOpenPgpStreamingSignatureVerifier.html
==============================================================================
--- websites/production/commons/content/sandbox/commons-openpgp/apidocs/src-html/org/apache/commons/openpgp/BouncyCastleOpenPgpStreamingSignatureVerifier.html (added)
+++ websites/production/commons/content/sandbox/commons-openpgp/apidocs/src-html/org/apache/commons/openpgp/BouncyCastleOpenPgpStreamingSignatureVerifier.html Sat Aug 10 22:25:17 2013
@@ -0,0 +1,230 @@
+<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 java.io.IOException;<a name="line.20"></a>
+<FONT color="green">021</FONT> import java.io.InputStream;<a name="line.21"></a>
+<FONT color="green">022</FONT> import java.security.Security;<a name="line.22"></a>
+<FONT color="green">023</FONT> import java.security.SignatureException;<a name="line.23"></a>
+<FONT color="green">024</FONT> <a name="line.24"></a>
+<FONT color="green">025</FONT> import org.bouncycastle.jce.provider.BouncyCastleProvider;<a name="line.25"></a>
+<FONT color="green">026</FONT> import org.bouncycastle.openpgp.PGPCompressedData;<a name="line.26"></a>
+<FONT color="green">027</FONT> import org.bouncycastle.openpgp.PGPException;<a name="line.27"></a>
+<FONT color="green">028</FONT> import org.bouncycastle.openpgp.PGPObjectFactory;<a name="line.28"></a>
+<FONT color="green">029</FONT> import org.bouncycastle.openpgp.PGPPublicKey;<a name="line.29"></a>
+<FONT color="green">030</FONT> import org.bouncycastle.openpgp.PGPSignature;<a name="line.30"></a>
+<FONT color="green">031</FONT> import org.bouncycastle.openpgp.PGPSignatureList;<a name="line.31"></a>
+<FONT color="green">032</FONT> import org.bouncycastle.openpgp.PGPUtil;<a name="line.32"></a>
+<FONT color="green">033</FONT> import org.bouncycastle.openpgp.operator.jcajce.JcaPGPContentVerifierBuilderProvider;<a name="line.33"></a>
+<FONT color="green">034</FONT> <a name="line.34"></a>
+<FONT color="green">035</FONT> /**<a name="line.35"></a>
+<FONT color="green">036</FONT> * Bouncy Castle implementation of the OpenPGP signer.<a name="line.36"></a>
+<FONT color="green">037</FONT> * <a name="line.37"></a>
+<FONT color="green">038</FONT> * @author <a href="mailto:brett@apache.org">Brett Porter</a><a name="line.38"></a>
+<FONT color="green">039</FONT> */<a name="line.39"></a>
+<FONT color="green">040</FONT> public class BouncyCastleOpenPgpStreamingSignatureVerifier<a name="line.40"></a>
+<FONT color="green">041</FONT> implements OpenPgpStreamingSignatureVerifier<a name="line.41"></a>
+<FONT color="green">042</FONT> {<a name="line.42"></a>
+<FONT color="green">043</FONT> private PGPSignature sig;<a name="line.43"></a>
+<FONT color="green">044</FONT> <a name="line.44"></a>
+<FONT color="green">045</FONT> public BouncyCastleOpenPgpStreamingSignatureVerifier( InputStream signature, KeyRing keyRing )<a name="line.45"></a>
+<FONT color="green">046</FONT> throws OpenPgpException, IOException<a name="line.46"></a>
+<FONT color="green">047</FONT> {<a name="line.47"></a>
+<FONT color="green">048</FONT> init( signature, keyRing );<a name="line.48"></a>
+<FONT color="green">049</FONT> }<a name="line.49"></a>
+<FONT color="green">050</FONT> <a name="line.50"></a>
+<FONT color="green">051</FONT> private void init( InputStream signature, KeyRing keyRing )<a name="line.51"></a>
+<FONT color="green">052</FONT> throws OpenPgpException, IOException<a name="line.52"></a>
+<FONT color="green">053</FONT> {<a name="line.53"></a>
+<FONT color="green">054</FONT> // TODO: better location for this?<a name="line.54"></a>
+<FONT color="green">055</FONT> Security.addProvider( new BouncyCastleProvider() );<a name="line.55"></a>
+<FONT color="green">056</FONT> <a name="line.56"></a>
+<FONT color="green">057</FONT> try<a name="line.57"></a>
+<FONT color="green">058</FONT> {<a name="line.58"></a>
+<FONT color="green">059</FONT> signature = PGPUtil.getDecoderStream( signature );<a name="line.59"></a>
+<FONT color="green">060</FONT> <a name="line.60"></a>
+<FONT color="green">061</FONT> PGPPublicKey key = null;<a name="line.61"></a>
+<FONT color="green">062</FONT> while ( key == null && signature.available() > 0 )<a name="line.62"></a>
+<FONT color="green">063</FONT> {<a name="line.63"></a>
+<FONT color="green">064</FONT> PGPObjectFactory pgpFact = new PGPObjectFactory( signature );<a name="line.64"></a>
+<FONT color="green">065</FONT> <a name="line.65"></a>
+<FONT color="green">066</FONT> PGPSignatureList p3;<a name="line.66"></a>
+<FONT color="green">067</FONT> <a name="line.67"></a>
+<FONT color="green">068</FONT> Object o = pgpFact.nextObject();<a name="line.68"></a>
+<FONT color="green">069</FONT> if ( o == null )<a name="line.69"></a>
+<FONT color="green">070</FONT> {<a name="line.70"></a>
+<FONT color="green">071</FONT> break;<a name="line.71"></a>
+<FONT color="green">072</FONT> }<a name="line.72"></a>
+<FONT color="green">073</FONT> <a name="line.73"></a>
+<FONT color="green">074</FONT> if ( o instanceof PGPCompressedData )<a name="line.74"></a>
+<FONT color="green">075</FONT> {<a name="line.75"></a>
+<FONT color="green">076</FONT> PGPCompressedData c1 = (PGPCompressedData) o;<a name="line.76"></a>
+<FONT color="green">077</FONT> <a name="line.77"></a>
+<FONT color="green">078</FONT> pgpFact = new PGPObjectFactory( c1.getDataStream() );<a name="line.78"></a>
+<FONT color="green">079</FONT> <a name="line.79"></a>
+<FONT color="green">080</FONT> p3 = (PGPSignatureList) pgpFact.nextObject();<a name="line.80"></a>
+<FONT color="green">081</FONT> }<a name="line.81"></a>
+<FONT color="green">082</FONT> else<a name="line.82"></a>
+<FONT color="green">083</FONT> {<a name="line.83"></a>
+<FONT color="green">084</FONT> p3 = (PGPSignatureList) o;<a name="line.84"></a>
+<FONT color="green">085</FONT> }<a name="line.85"></a>
+<FONT color="green">086</FONT> <a name="line.86"></a>
+<FONT color="green">087</FONT> for ( int i = 0; i < p3.size(); i++ )<a name="line.87"></a>
+<FONT color="green">088</FONT> {<a name="line.88"></a>
+<FONT color="green">089</FONT> sig = p3.get( i );<a name="line.89"></a>
+<FONT color="green">090</FONT> key = keyRing.getPublicKey( sig.getKeyID() );<a name="line.90"></a>
+<FONT color="green">091</FONT> if ( key != null )<a name="line.91"></a>
+<FONT color="green">092</FONT> {<a name="line.92"></a>
+<FONT color="green">093</FONT> break;<a name="line.93"></a>
+<FONT color="green">094</FONT> }<a name="line.94"></a>
+<FONT color="green">095</FONT> else<a name="line.95"></a>
+<FONT color="green">096</FONT> {<a name="line.96"></a>
+<FONT color="green">097</FONT> // TODO: log them all<a name="line.97"></a>
+<FONT color="green">098</FONT> }<a name="line.98"></a>
+<FONT color="green">099</FONT> }<a name="line.99"></a>
+<FONT color="green">100</FONT> <a name="line.100"></a>
+<FONT color="green">101</FONT> }<a name="line.101"></a>
+<FONT color="green">102</FONT> <a name="line.102"></a>
+<FONT color="green">103</FONT> if ( key == null )<a name="line.103"></a>
+<FONT color="green">104</FONT> {<a name="line.104"></a>
+<FONT color="green">105</FONT> throw new UnknownKeyException( "Unable to find key with key ID '"<a name="line.105"></a>
+<FONT color="green">106</FONT> + Long.toHexString( sig.getKeyID() ).toUpperCase() + "' in public key ring" );<a name="line.106"></a>
+<FONT color="green">107</FONT> }<a name="line.107"></a>
+<FONT color="green">108</FONT> <a name="line.108"></a>
+<FONT color="green">109</FONT> sig.init(new JcaPGPContentVerifierBuilderProvider().setProvider("BC"), key);<a name="line.109"></a>
+<FONT color="green">110</FONT> }<a name="line.110"></a>
+<FONT color="green">111</FONT> catch ( PGPException e )<a name="line.111"></a>
+<FONT color="green">112</FONT> {<a name="line.112"></a>
+<FONT color="green">113</FONT> // TODO: more details<a name="line.113"></a>
+<FONT color="green">114</FONT> throw new OpenPgpException( "Error calculating detached signature", e );<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> <a name="line.117"></a>
+<FONT color="green">118</FONT> public void update( byte[] buf )<a name="line.118"></a>
+<FONT color="green">119</FONT> throws OpenPgpException<a name="line.119"></a>
+<FONT color="green">120</FONT> {<a name="line.120"></a>
+<FONT color="green">121</FONT> update( buf, 0, buf.length );<a name="line.121"></a>
+<FONT color="green">122</FONT> }<a name="line.122"></a>
+<FONT color="green">123</FONT> <a name="line.123"></a>
+<FONT color="green">124</FONT> public void update( byte[] buf, int offset, int length )<a name="line.124"></a>
+<FONT color="green">125</FONT> throws OpenPgpException<a name="line.125"></a>
+<FONT color="green">126</FONT> {<a name="line.126"></a>
+<FONT color="green">127</FONT> try<a name="line.127"></a>
+<FONT color="green">128</FONT> {<a name="line.128"></a>
+<FONT color="green">129</FONT> sig.update( buf, offset, length );<a name="line.129"></a>
+<FONT color="green">130</FONT> }<a name="line.130"></a>
+<FONT color="green">131</FONT> catch ( SignatureException e )<a name="line.131"></a>
+<FONT color="green">132</FONT> {<a name="line.132"></a>
+<FONT color="green">133</FONT> // TODO: more details<a name="line.133"></a>
+<FONT color="green">134</FONT> throw new OpenPgpException( "Error calculating detached signature", e );<a name="line.134"></a>
+<FONT color="green">135</FONT> }<a name="line.135"></a>
+<FONT color="green">136</FONT> }<a name="line.136"></a>
+<FONT color="green">137</FONT> <a name="line.137"></a>
+<FONT color="green">138</FONT> public SignatureStatus finish()<a name="line.138"></a>
+<FONT color="green">139</FONT> throws OpenPgpException, IOException<a name="line.139"></a>
+<FONT color="green">140</FONT> {<a name="line.140"></a>
+<FONT color="green">141</FONT> try<a name="line.141"></a>
+<FONT color="green">142</FONT> {<a name="line.142"></a>
+<FONT color="green">143</FONT> if ( sig.verify() )<a name="line.143"></a>
+<FONT color="green">144</FONT> {<a name="line.144"></a>
+<FONT color="green">145</FONT> // TODO: how do we assess trust?<a name="line.145"></a>
+<FONT color="green">146</FONT> return SignatureStatus.VALID_UNTRUSTED;<a name="line.146"></a>
+<FONT color="green">147</FONT> }<a name="line.147"></a>
+<FONT color="green">148</FONT> else<a name="line.148"></a>
+<FONT color="green">149</FONT> {<a name="line.149"></a>
+<FONT color="green">150</FONT> return SignatureStatus.INVALID;<a name="line.150"></a>
+<FONT color="green">151</FONT> }<a name="line.151"></a>
+<FONT color="green">152</FONT> }<a name="line.152"></a>
+<FONT color="green">153</FONT> catch ( PGPException e )<a name="line.153"></a>
+<FONT color="green">154</FONT> {<a name="line.154"></a>
+<FONT color="green">155</FONT> // TODO: more details<a name="line.155"></a>
+<FONT color="green">156</FONT> throw new OpenPgpException( "Error calculating detached signature", e );<a name="line.156"></a>
+<FONT color="green">157</FONT> }<a name="line.157"></a>
+<FONT color="green">158</FONT> catch ( SignatureException e )<a name="line.158"></a>
+<FONT color="green">159</FONT> {<a name="line.159"></a>
+<FONT color="green">160</FONT> // TODO: more details<a name="line.160"></a>
+<FONT color="green">161</FONT> throw new OpenPgpException( "Error calculating detached signature", e );<a name="line.161"></a>
+<FONT color="green">162</FONT> }<a name="line.162"></a>
+<FONT color="green">163</FONT> }<a name="line.163"></a>
+<FONT color="green">164</FONT> }<a name="line.164"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</PRE>
+</BODY>
+</HTML>
\ No newline at end of file
Propchange: websites/production/commons/content/sandbox/commons-openpgp/apidocs/src-html/org/apache/commons/openpgp/BouncyCastleOpenPgpStreamingSignatureVerifier.html
------------------------------------------------------------------------------
svn:eol-style = native