directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r208977 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthentication.java
Date Sun, 03 Jul 2005 21:39:38 GMT
Author: elecharny
Date: Sun Jul  3 14:39:37 2005
New Revision: 208977

URL: http://svn.apache.org/viewcvs?rev=208977&view=rev
Log:
Change the simple element form byte to OctetString

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=208977&r1=208976&r2=208977&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
Sun Jul  3 14:39:37 2005
@@ -17,6 +17,7 @@
 package org.apache.asn1.ldap.pojo;
 
 import org.apache.asn1.Asn1Object;
+import org.apache.asn1.primitives.OctetString;
 
 /**
  * A ldapObject which stores the Simple authentication of a BindRequest.
@@ -28,7 +29,7 @@
     //~ Instance fields ----------------------------------------------------------------------------
 
     /** The simple authentication password */
-    private byte[] simple;
+    private OctetString simple;
 
     //~ Methods ------------------------------------------------------------------------------------
 
@@ -37,9 +38,9 @@
      *
      * @return The password
      */
-    public String getSimple()
+    public OctetString getSimple()
     {
-        return (simple == null ? null : new String(simple) );
+        return simple;
     }
 
     /**
@@ -47,7 +48,7 @@
      *
      * @param simple The simple password
      */
-    public void setSimple( byte[] simple )
+    public void setSimple( OctetString simple )
     {
         this.simple = simple;
     }



Mime
View raw message