You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2006/09/06 18:30:33 UTC

svn commit: r440773 - /directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/messages/bind/AuthenticationDecorator.java

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 <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-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();
     }
     
     /**