Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 51673 invoked from network); 15 Apr 2005 05:36:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Apr 2005 05:36:10 -0000 Received: (qmail 25276 invoked by uid 500); 15 Apr 2005 05:36:09 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 25237 invoked by uid 500); 15 Apr 2005 05:36:09 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 25211 invoked by uid 99); 15 Apr 2005 05:36:09 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 14 Apr 2005 22:36:08 -0700 Received: (qmail 51667 invoked by uid 65534); 15 Apr 2005 05:36:07 -0000 Message-ID: <20050415053607.51666.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: svnmailer-1.0.0-dev Date: Fri, 15 Apr 2005 05:36:07 -0000 Subject: svn commit: r161395 - directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SaslAuthenticationPOJO.java To: commits@directory.apache.org From: elecharny@apache.org X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: elecharny Date: Thu Apr 14 22:36:07 2005 New Revision: 161395 URL: http://svn.apache.org/viewcvs?view=3Drev&rev=3D161395 Log: Changed the MutableString credentials element to a byte[] credentials eleme= nt, as it's an OCTET STRING. Used MutableString instead of String Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/po= jo/SaslAuthenticationPOJO.java Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/l= dap/pojo/SaslAuthenticationPOJO.java URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/s= rc/java/org/apache/asn1/ldap/pojo/SaslAuthenticationPOJO.java?view=3Ddiff&r= 1=3D161394&r2=3D161395 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/po= jo/SaslAuthenticationPOJO.java (original) +++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/po= jo/SaslAuthenticationPOJO.java Thu Apr 14 22:36:07 2005 @@ -16,6 +16,8 @@ */ package org.apache.asn1.ldap.pojo; =20 +import org.apache.asn1.util.MutableString; + =20 /** * A POJO which stores the SASL authentication of a BindRequest. @@ -32,10 +34,10 @@ * SKEY, * EXTERNAL **/ - private String mechanism; + private MutableString mechanism; =20 /** optional credentials of the user */ - private String credentials; + private byte[] credentials; =20 //~ Methods ----------------------------------------------------------= -------------------------- =20 @@ -44,7 +46,7 @@ * * @return The credentials */ - public String getCredentials() + public byte[] getCredentials() { =20 return credentials; @@ -55,7 +57,7 @@ * * @param credentials The credentials */ - public void setCredentials( String credentials ) + public void setCredentials( byte[] credentials ) { this.credentials =3D credentials; } @@ -68,7 +70,7 @@ public String getMechanism() { =20 - return mechanism; + return mechanism.toString(); } =20 /** @@ -76,7 +78,7 @@ * * @param mechanism The mechanism */ - public void setMechanism( String mechanism ) + public void setMechanism( MutableString mechanism ) { this.mechanism =3D mechanism; } @@ -86,8 +88,13 @@ */ public void free()=20 { - mechanism =3D null; - credentials =3D null; + if (mechanism !=3D null) + { + mechanism.free(); + } + =09 + credentials =3D null; + =09 super.free(); } }