directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r224567 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthentication.java
Date Sat, 23 Jul 2005 22:49:34 GMT
Author: elecharny
Date: Sat Jul 23 15:49:31 2005
New Revision: 224567

URL: http://svn.apache.org/viewcvs?rev=224567&view=rev
Log:
- fixed the Javadoc
- added a toString method

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthentication.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthentication.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthentication.java?rev=224567&r1=224566&r2=224567&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthentication.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthentication.java
Sat Jul 23 15:49:31 2005
@@ -19,8 +19,9 @@
 import org.apache.asn1.Asn1Object;
 import org.apache.asn1.primitives.OctetString;
 
+
 /**
- * A ldapObject which stores the Simple authentication of a BindRequest.
+ * A ldapObject which stores the Simple authentication for a BindRequest.
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
@@ -51,5 +52,15 @@
     public void setSimple( OctetString simple )
     {
         this.simple = simple;
+    }
+
+    /**
+     * Return the simple authentication as a string
+     *
+     * @return The simple authentication string.
+     */
+    public String toString()
+    {
+        return ( ( simple == null ) ? "null" : simple.toString() );
     }
 }



Mime
View raw message