directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1221766 - /directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/CertificateDialog.java
Date Wed, 21 Dec 2011 15:20:16 GMT
Author: pamarcelot
Date: Wed Dec 21 15:20:16 2011
New Revision: 1221766

URL: http://svn.apache.org/viewvc?rev=1221766&view=rev
Log:
Moved to a higher level thrown exception.

Modified:
    directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/CertificateDialog.java

Modified: directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/CertificateDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/CertificateDialog.java?rev=1221766&r1=1221765&r2=1221766&view=diff
==============================================================================
--- directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/CertificateDialog.java
(original)
+++ directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/CertificateDialog.java
Wed Dec 21 15:20:16 2011
@@ -25,6 +25,7 @@ import java.io.ByteArrayInputStream;
 import java.io.File;
 import java.io.IOException;
 import java.security.cert.Certificate;
+import java.security.cert.CertificateException;
 import java.security.cert.CertificateFactory;
 import java.security.cert.X509Certificate;
 
@@ -271,7 +272,7 @@ public class CertificateDialog extends D
     }
 
 
-    private static X509Certificate generateCertificate( byte[] data ) throws Exception
+    private static X509Certificate generateCertificate( byte[] data ) throws CertificateException
     {
         CertificateFactory cf = CertificateFactory.getInstance( "X.509" ); //$NON-NLS-1$
         Certificate certificate = cf.generateCertificate( new ByteArrayInputStream( data
) );



Mime
View raw message