directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1694020 - /directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/ConnectionParameter.java
Date Tue, 04 Aug 2015 10:13:03 GMT
Author: elecharny
Date: Tue Aug  4 10:13:03 2015
New Revision: 1694020

URL: http://svn.apache.org/r1694020
Log:
Added a numeric value to the AuthenticationMethod enum

Modified:
    directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/ConnectionParameter.java

Modified: directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/ConnectionParameter.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/ConnectionParameter.java?rev=1694020&r1=1694019&r2=1694020&view=diff
==============================================================================
--- directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/ConnectionParameter.java
(original)
+++ directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/ConnectionParameter.java
Tue Aug  4 10:13:03 2015
@@ -79,20 +79,31 @@ public class ConnectionParameter
     public enum AuthenticationMethod
     {
         /** No authentication, anonymous bind. */
-        NONE,
+        NONE(0),
 
         /** Simple authentication, simple bind. */
-        SIMPLE,
+        SIMPLE(1),
 
         /** SASL authentication using DIGEST-MD5. */
-        SASL_DIGEST_MD5,
+        SASL_DIGEST_MD5(2),
 
         /** SASL authentication using CRAM-MD5. */
-        SASL_CRAM_MD5,
+        SASL_CRAM_MD5(3),
 
         /** SASL authentication using GSSAPI. */
-        SASL_GSSAPI
-
+        SASL_GSSAPI(4);
+        
+        private int value;
+        
+        private AuthenticationMethod( int value )
+        {
+            this.value = value;
+        }
+
+        public int getValue()
+        {
+            return value;
+        }
     }
 
     public enum Krb5CredentialConfiguration



Mime
View raw message