directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1125901 - /directory/apacheds/trunk/server-annotations/src/main/java/org/apache/directory/server/factory/ServerAnnotationProcessor.java
Date Sun, 22 May 2011 10:40:16 GMT
Author: kayyagari
Date: Sun May 22 10:40:16 2011
New Revision: 1125901

URL: http://svn.apache.org/viewvc?rev=1125901&view=rev
Log:
o set the keystore file path and password in LdapServer instance if provided

Modified:
    directory/apacheds/trunk/server-annotations/src/main/java/org/apache/directory/server/factory/ServerAnnotationProcessor.java

Modified: directory/apacheds/trunk/server-annotations/src/main/java/org/apache/directory/server/factory/ServerAnnotationProcessor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-annotations/src/main/java/org/apache/directory/server/factory/ServerAnnotationProcessor.java?rev=1125901&r1=1125900&r2=1125901&view=diff
==============================================================================
--- directory/apacheds/trunk/server-annotations/src/main/java/org/apache/directory/server/factory/ServerAnnotationProcessor.java
(original)
+++ directory/apacheds/trunk/server-annotations/src/main/java/org/apache/directory/server/factory/ServerAnnotationProcessor.java
Sun May 22 10:40:16 2011
@@ -37,6 +37,7 @@ import org.apache.directory.server.proto
 import org.apache.directory.server.protocol.shared.transport.Transport;
 import org.apache.directory.server.protocol.shared.transport.UdpTransport;
 import org.apache.directory.shared.ldap.model.constants.SupportedSaslMechanisms;
+import org.apache.directory.shared.util.Strings;
 import org.apache.mina.util.AvailablePortFinder;
 import org.junit.runner.Description;
 
@@ -118,6 +119,12 @@ public class ServerAnnotationProcessor
             
             ldapServer.setSaslPrincipal( createLdapServer.saslPrincipal() );
             
+            if( !Strings.isEmpty( createLdapServer.keyStore() ) )
+            {
+                ldapServer.setKeystoreFile( createLdapServer.keyStore() );
+                ldapServer.setCertificatePassword( createLdapServer.certificatePassword()
);
+            }
+            
             for( Class<?> extOpClass : createLdapServer.extendedOpHandlers() )
             {
                 try



Mime
View raw message