Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 88787 invoked from network); 6 Sep 2006 16:30:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Sep 2006 16:30:54 -0000 Received: (qmail 92112 invoked by uid 500); 6 Sep 2006 16:30:54 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 92068 invoked by uid 500); 6 Sep 2006 16:30:54 -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 92040 invoked by uid 99); 6 Sep 2006 16:30:54 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Sep 2006 09:30:54 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Sep 2006 09:30:53 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 910A41A981A; Wed, 6 Sep 2006 09:30:33 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r440773 - /directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/messages/bind/AuthenticationDecorator.java Date: Wed, 06 Sep 2006 16:30:33 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20060906163033.910A41A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: elecharny Date: Wed Sep 6 09:30:32 2006 New Revision: 440773 URL: http://svn.apache.org/viewvc?view=rev&rev=440773 Log: - Reflect the renaming of authentication interfaces and classes - Changed the isSimple and is Sasl methods, they are already implemented in the AbstractAuthentication class Modified: directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/messages/bind/AuthenticationDecorator.java Modified: directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/messages/bind/AuthenticationDecorator.java URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/messages/bind/AuthenticationDecorator.java?view=diff&rev=440773&r1=440772&r2=440773 ============================================================================== --- directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/messages/bind/AuthenticationDecorator.java (original) +++ directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/messages/bind/AuthenticationDecorator.java Wed Sep 6 09:30:32 2006 @@ -19,6 +19,9 @@ */ package org.apache.directory.shared.ldap.messages.bind; +import org.apache.directory.shared.asn1.ber.Decoder; +import org.apache.directory.shared.asn1.ber.Encoder; + /** * The base abstract class of SimpleAuthenticationDecorator and SaslCredentialsDecorator * abstract class. As those two classes have specific operations, common ones @@ -26,17 +29,17 @@ * * @author Apache Directory Project */ -public abstract class AuthenticationDecorator implements AuthenticationOperation +public abstract class AuthenticationDecorator implements Authentication, Encoder, Decoder { /** A reference to the decorated object */ - protected AuthenticationOperation authentication; + protected Authentication authentication; /** - * Creates a new BindRequestDecorator object. + * Creates a new AuthenticationDecorator object. * - * @param the associated BindRequest object + * @param the associated Authentication object */ - public AuthenticationDecorator( AuthenticationOperation authentication ) + public AuthenticationDecorator( Authentication authentication ) { this.authentication = authentication; } @@ -44,7 +47,7 @@ /** * @return The decorated object */ - public AuthenticationOperation getAuthentication() + public Authentication getAuthentication() { return authentication; } @@ -54,7 +57,7 @@ */ public boolean isSimple() { - return ( authentication instanceof SimpleAuthenticationDecorator ); + return authentication.isSimple(); } /** @@ -62,7 +65,7 @@ */ public boolean isSasl() { - return ( authentication instanceof SaslCredentialsDecorator ); + return authentication.isSasl(); } /**