directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1479565 - /directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/beans/LdapServerBean.java
Date Mon, 06 May 2013 13:31:44 GMT
Author: pamarcelot
Date: Mon May  6 13:31:44 2013
New Revision: 1479565

URL: http://svn.apache.org/r1479565
Log:
Added utility methods related to the "cipher suites" field.

Modified:
    directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/beans/LdapServerBean.java

Modified: directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/beans/LdapServerBean.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/beans/LdapServerBean.java?rev=1479565&r1=1479564&r2=1479565&view=diff
==============================================================================
--- directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/beans/LdapServerBean.java
(original)
+++ directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/beans/LdapServerBean.java
Mon May  6 13:31:44 2013
@@ -98,6 +98,7 @@ public class LdapServerBean extends DSBa
     @ConfigurationElement(attributeType = "ads-enabledCipherSuites", isOptional = true)
     private List<String> enabledCipherSuites = new ArrayList<String>();
 
+
     /**
      * Create a new LdapServerBean instance
      */
@@ -411,12 +412,12 @@ public class LdapServerBean extends DSBa
         sb.append( toString( tabs, "  confidentiality required", confidentialityRequired
) );
         sb.append( toString( tabs, "  enable replication provider", replReqHandler ) );
         sb.append( toString( tabs, "  Pinger thread sleep time(in sec.)", replPingerSleep
) );
-        
-        if( ( enabledCipherSuites != null ) && !enabledCipherSuites.isEmpty() )
+
+        if ( ( enabledCipherSuites != null ) && !enabledCipherSuites.isEmpty() )
         {
             sb.append( toString( tabs, "  enabled cipher suites", enabledCipherSuites.toString()
) );
         }
-        
+
         if ( ( extendedOpHandlers != null ) && ( extendedOpHandlers.size() > 0
) )
         {
             sb.append( tabs ).append( "  extended operation handlers :\n" );
@@ -503,7 +504,13 @@ public class LdapServerBean extends DSBa
         this.enabledCipherSuites = enabledCipherSuites;
     }
 
-    
+
+    public void clearEnabledCipherSuites()
+    {
+        this.enabledCipherSuites.clear();
+    }
+
+
     /**
      * @param enabledCipherSuites the cipher suites to add
      */
@@ -515,7 +522,16 @@ public class LdapServerBean extends DSBa
         }
     }
 
-    
+
+    public void removeEnabledCipherSuites( String... enabledCipherSuites )
+    {
+        for ( String cs : enabledCipherSuites )
+        {
+            this.enabledCipherSuites.remove( cs );
+        }
+    }
+
+
     /**
      * {@inheritDoc}
      */



Mime
View raw message