Author: simonetripodi
Date: Fri Feb 26 08:27:27 2010
New Revision: 916614

URL: http://svn.apache.org/viewvc?rev=916614&view=rev
Log:
implemented toString method to debug the certificate location

Modified:
    
labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/signers/rsa/AbstractRsaSha1Key.java

Modified: 
labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/signers/rsa/AbstractRsaSha1Key.java
URL: 
http://svn.apache.org/viewvc/labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/signers/rsa/AbstractRsaSha1Key.java?rev=916614&r1=916613&r2=916614&view=diff
==============================================================================
--- 
labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/signers/rsa/AbstractRsaSha1Key.java
 (original)
+++ 
labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/signers/rsa/AbstractRsaSha1Key.java
 Fri Feb 26 08:27:27 2010
@@ -40,6 +40,11 @@
     private final String value;
 
     /**
+     * The certificate URL location.
+     */
+    private final URL certificateLocation;
+
+    /**
      * Instantiate a new RSA key reading the certificate from the URL.
      *
      * @param certificateLocation the certificate from the URL.
@@ -66,6 +71,8 @@
             this.value = new String(bufferedValue);
 
             this.init(bufferedValue);
+
+            this.certificateLocation = certificateLocation;
         } catch (Exception e) {
             throw new SignatureException("An error occurred while reading RSA 
cerificate '"
                     + certificateLocation
@@ -128,4 +135,12 @@
         }
     }
 
+    /**
+     * {...@inheritdoc}
+     */
+    @Override
+    public String toString() {
+        return this.certificateLocation.toString();
+    }
+
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to