You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2005/09/10 00:26:10 UTC

svn commit: r279897 - /directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/message/BindRequestImpl.java

Author: elecharny
Date: Fri Sep  9 15:26:04 2005
New Revision: 279897

URL: http://svn.apache.org/viewcvs?rev=279897&view=rev
Log:
Added a mechanism member to deal with SASL mechanism.

Modified:
    directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/message/BindRequestImpl.java

Modified: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/message/BindRequestImpl.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/message/BindRequestImpl.java?rev=279897&r1=279896&r2=279897&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/message/BindRequestImpl.java (original)
+++ directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/message/BindRequestImpl.java Fri Sep  9 15:26:04 2005
@@ -39,6 +39,8 @@
     private String name = "";
     /** The passwords, keys or tickets used to verify user identity */
     private byte [] credentials;
+    /** The mechanism used to decode user identity */
+    private String mechanism;
     /** Simple vs. SASL authentication mode flag */
     private boolean isSimple = true;
     /** Bind behavoir exhibity by protocol version */
@@ -126,6 +128,28 @@
     {
         lockCheck( "Attempt to alter auth. cred. of locked BindRequest!" );
         this.credentials = credentials;
+    }
+
+    /**
+     * Gets the mechanism if this request uses SASL authentication mechanisms.
+     *
+     * @return The mechanism if SASL.
+     */
+    public String getMechanism()
+    {
+        return mechanism;
+    }
+
+    /**
+     * Sets the mechanism associated with a SASL authentication
+     *
+     * @param mechanism the mechanism
+     * otherwise
+     */
+    public void setMechanism( String mechanism )
+    {
+        lockCheck( "Attempt to alter auth. cred. of locked BindRequest!" );
+        this.mechanism = mechanism;
     }