directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r161393 - directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthenticationPOJO.java
Date Fri, 15 Apr 2005 05:34:52 GMT
Author: elecharny
Date: Thu Apr 14 22:34:51 2005
New Revision: 161393

URL: http://svn.apache.org/viewcvs?view=rev&rev=161393
Log:
Changed the MutableString simple element to a byte[] simple element, as it's an OCTET STRING

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

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthenticationPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthenticationPOJO.java?view=diff&r1=161392&r2=161393
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthenticationPOJO.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthenticationPOJO.java
Thu Apr 14 22:34:51 2005
@@ -16,8 +16,6 @@
  */
 package org.apache.asn1.ldap.pojo;
 
-import org.apache.asn1.util.MutableString;
-
 /**
  * A POJO which stores the Simple authentication of a BindRequest.
  * 
@@ -28,7 +26,7 @@
     //~ Instance fields ----------------------------------------------------------------------------
 
     /** The simple authentication password */
-    private MutableString simple;
+    private byte[] simple;
 
     //~ Methods ------------------------------------------------------------------------------------
 
@@ -39,7 +37,7 @@
      */
     public String getSimple()
     {
-        return (simple == null ? null : simple.toString());
+        return (simple == null ? null : new String(simple) );
     }
 
     /**
@@ -47,7 +45,7 @@
      *
      * @param simple The simple password
      */
-    public void setSimple( MutableString simple )
+    public void setSimple( byte[] simple )
     {
         this.simple = simple;
     }
@@ -57,10 +55,7 @@
      */
     public void free() 
     {
-    	if (simple != null)
-    	{
-    	    simple.free();
-    	}
+    	simple = null;
     	
     	super.free();
     }



Mime
View raw message