commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From denn...@apache.org
Subject svn commit: r935175 - /commons/sandbox/openpgp/trunk/src/site/apt/usage.apt
Date Sat, 17 Apr 2010 13:43:25 GMT
Author: dennisl
Date: Sat Apr 17 13:43:25 2010
New Revision: 935175

URL: http://svn.apache.org/viewvc?rev=935175&view=rev
Log:
No ascii armor parameter is used in the call to verifier.verifyDetachedSignature().

Modified:
    commons/sandbox/openpgp/trunk/src/site/apt/usage.apt

Modified: commons/sandbox/openpgp/trunk/src/site/apt/usage.apt
URL: http://svn.apache.org/viewvc/commons/sandbox/openpgp/trunk/src/site/apt/usage.apt?rev=935175&r1=935174&r2=935175&view=diff
==============================================================================
--- commons/sandbox/openpgp/trunk/src/site/apt/usage.apt (original)
+++ commons/sandbox/openpgp/trunk/src/site/apt/usage.apt Sat Apr 17 13:43:25 2010
@@ -8,7 +8,7 @@
  
 Usage Instructions
  
-  Currently only creation and verification of detached signatures is supported. This can
be done in streaming and 
+  Currently only creation and verification of detached signatures is supported. This can
be done in streaming and
   non-streaming mode.
 
   Both modes require that you have created a key ring.
@@ -33,7 +33,7 @@ BouncyCastleKeyRing( InputStream secretK
 -----
 signer = new BouncyCastleOpenPgpSigner();
 
-signer.detachedSign( 
+signer.detachedSign(
   getClass().getResourceAsStream( "/test-input" ),  // binary input file
   signature,                                        // outputstream for the signature
   keyId,                                            // key ID
@@ -46,11 +46,10 @@ signer.detachedSign( 
 -----
 verifier = new BouncyCastleOpenPgpSignatureVerifier();
 
-verifier.verifyDetachedSignature( 
+verifier.verifyDetachedSignature(
   getClass().getResourceAsStream( "/test-input" ),  // binary input file
   signature,                                        // inputstream for the signature
-  keyRing,
-  true );                                           // ascii armor?
+  keyRing);
 -----
 
 * Streaming Mode
@@ -63,7 +62,7 @@ verifier.verifyDetachedSignature( 
   to receive the detached signature as a byte array.
   
 -----
-signer = new BouncyCastleOpenPgpStreamingSigner( 
+signer = new BouncyCastleOpenPgpStreamingSigner(
   new FileOutputStream( "file.asc" ),           // detached signature
   "ABC123D",                                    // key ID
   keyRing,
@@ -86,7 +85,7 @@ byte[] signature = signer.finish();
   Verifying a signature in streaming mode is similar.
 
 -----
-verifier = new BouncyCastleOpenPgpStreamingSignatureVerifier( 
+verifier = new BouncyCastleOpenPgpStreamingSignatureVerifier(
   new FileInputStream( "file.asc" ),            // detached signature
   keyRing,
   true );                                       // ascii armor?



Mime
View raw message