directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r658836 - /directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/security/CoreKeyStoreSpi.java
Date Wed, 21 May 2008 20:00:03 GMT
Author: elecharny
Date: Wed May 21 13:00:03 2008
New Revision: 658836

URL: http://svn.apache.org/viewvc?rev=658836&view=rev
Log:
Not using NamingException anymore

Modified:
    directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/security/CoreKeyStoreSpi.java

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/security/CoreKeyStoreSpi.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/security/CoreKeyStoreSpi.java?rev=658836&r1=658835&r2=658836&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/security/CoreKeyStoreSpi.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/security/CoreKeyStoreSpi.java
Wed May 21 13:00:03 2008
@@ -35,7 +35,6 @@
 import java.util.Date;
 import java.util.Enumeration;
 
-import javax.naming.NamingException;
 import javax.naming.directory.Attributes;
 
 import org.apache.commons.lang.ArrayUtils;
@@ -79,7 +78,7 @@
     }
 
 
-    private ServerEntry getTlsEntry() throws NamingException
+    private ServerEntry getTlsEntry() throws Exception
     {
         LdapDN adminDn = PartitionNexus.getAdminName();
         LdapPrincipal principal = new LdapPrincipal( adminDn, AuthenticationLevel.SIMPLE
);
@@ -141,7 +140,7 @@
                 ServerEntry entry = getTlsEntry();
                 return TlsKeyGenerator.getCertificate( entry );
             }
-            catch ( NamingException e )
+            catch ( Exception e )
             {
                 LOG.error( "Failed to access certificate in DIT.", e );
             }



Mime
View raw message