directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r376623 [27/38] - in /directory/sandbox/akarasulu/rc1/apacheds: core-plugin/src/main/java/org/apache/directory/server/core/tools/schema/ core-plugin/src/test/java/org/apache/directory/server/core/tools/schema/ core-shared/src/main/java/org/...
Date Fri, 10 Feb 2006 10:49:57 GMT
Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/ChangePasswordServer.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/ChangePasswordServer.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/ChangePasswordServer.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/ChangePasswordServer.java Fri Feb 10 02:48:07 2006
@@ -17,6 +17,7 @@
 
 package org.apache.directory.server.changepw;
 
+
 import java.io.IOException;
 import java.util.Dictionary;
 
@@ -29,6 +30,7 @@
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+
 /**
  * A wrapper encapsulating configuration, a MINA registry, and a PrincipalStore
  * to implement a complete Change Password server. 
@@ -49,7 +51,8 @@
     private Service tcpService;
     private Service udpService;
 
-    public ChangePasswordServer( ChangePasswordConfiguration config, ServiceRegistry registry, PrincipalStore store )
+
+    public ChangePasswordServer(ChangePasswordConfiguration config, ServiceRegistry registry, PrincipalStore store)
     {
         this.config = config;
         this.registry = registry;
@@ -76,10 +79,12 @@
         }
     }
 
+
     public boolean isDifferent( Dictionary newConfig )
     {
         return config.isDifferent( newConfig );
     }
+
 
     public void destroy()
     {

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/exceptions/ChangePasswordException.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/exceptions/ChangePasswordException.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/exceptions/ChangePasswordException.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/exceptions/ChangePasswordException.java Fri Feb 10 02:48:07 2006
@@ -17,8 +17,10 @@
 
 package org.apache.directory.server.changepw.exceptions;
 
+
 import org.apache.kerberos.exceptions.KerberosException;
 
+
 /**
  * The root of the Change Password exception hierarchy.
  *
@@ -29,6 +31,7 @@
 {
     private static final long serialVersionUID = 4880242751298831543L;
 
+
     // ------------------------------------------------------------------------
     // C O N S T R U C T O R S
     // ------------------------------------------------------------------------
@@ -39,11 +42,12 @@
      * @param errorCode the error code associated with this ChangePasswordException
      * @param msg the standard Change Password error message for this ChangePasswordException
      */
-    public ChangePasswordException( int errorCode, String msg )
+    public ChangePasswordException(int errorCode, String msg)
     {
         super( errorCode, msg );
     }
 
+
     /**
      * Creates a ChangePasswordException with an error code, a message and an
      * underlying throwable that caused this fault.
@@ -52,21 +56,23 @@
      * @param msg the standard Change Password error message for this ChangePasswordException
      * @param cause the underlying failure, if any
      */
-    public ChangePasswordException( int errorCode, String msg, Throwable cause )
+    public ChangePasswordException(int errorCode, String msg, Throwable cause)
     {
         super( errorCode, msg, cause );
     }
 
+
     /**
      * Creates a ChangePasswordException with an error code and a message.
      *
      * @param errorType the error type associated with this ChangePasswordException
      */
-    public ChangePasswordException( ErrorType errorType )
+    public ChangePasswordException(ErrorType errorType)
     {
         super( errorType.getOrdinal(), errorType.getMessage() );
     }
 
+
     /**
      * Creates a ChangePasswordException with an error code, a message, and
      * data helping to explain what caused this fault.
@@ -74,7 +80,7 @@
      * @param errorType the error type associated with this ChangePasswordException
      * @param explanatoryData data helping to explain this fault, if any
      */
-    public ChangePasswordException( ErrorType errorType, byte[] explanatoryData )
+    public ChangePasswordException(ErrorType errorType, byte[] explanatoryData)
     {
         super( errorType.getOrdinal(), errorType.getMessage(), explanatoryData );
     }

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/exceptions/ErrorType.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/exceptions/ErrorType.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/exceptions/ErrorType.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/exceptions/ErrorType.java Fri Feb 10 02:48:07 2006
@@ -17,10 +17,12 @@
 
 package org.apache.directory.server.changepw.exceptions;
 
+
 import java.util.Arrays;
 import java.util.Collections;
 import java.util.List;
 
+
 /**
  * Type safe enumeration of Change Password error types
  *
@@ -33,27 +35,24 @@
      * Enumeration elements are constructed once upon class loading.
      * Order of appearance here determines the order of compareTo.
      */
-    public static final ErrorType KRB5_KPASSWD_MALFORMED = new ErrorType( 1,
-            "Request failed due to being malformed." );
+    public static final ErrorType KRB5_KPASSWD_MALFORMED = new ErrorType( 1, "Request failed due to being malformed." );
     public static final ErrorType KRB5_KPASSWD_HARDERROR = new ErrorType( 2,
-            "Request failed due to a hard error in processing the request." );
+        "Request failed due to a hard error in processing the request." );
     public static final ErrorType KRB5_KPASSWD_AUTHERROR = new ErrorType( 3,
-            "Request failed due to an error in authentication processing." );
+        "Request failed due to an error in authentication processing." );
     public static final ErrorType KRB5_KPASSWD_SOFTERROR = new ErrorType( 4,
-            "Request failed due to a soft error in processing the request." );
-    public static final ErrorType KRB5_KPASSWD_ACCESSDENIED = new ErrorType( 5,
-            "Requestor not authorized." );
-    public static final ErrorType KRB5_KPASSWD_BAD_VERSION = new ErrorType( 6,
-            "Protocol version unsupported." );
-    public static final ErrorType KRB5_KPASSWD_INITIAL_FLAG_NEEDED = new ErrorType( 7,
-            "Initial flag required." );
+        "Request failed due to a soft error in processing the request." );
+    public static final ErrorType KRB5_KPASSWD_ACCESSDENIED = new ErrorType( 5, "Requestor not authorized." );
+    public static final ErrorType KRB5_KPASSWD_BAD_VERSION = new ErrorType( 6, "Protocol version unsupported." );
+    public static final ErrorType KRB5_KPASSWD_INITIAL_FLAG_NEEDED = new ErrorType( 7, "Initial flag required." );
     public static final ErrorType KRB5_KPASSWD_UNKNOWN_ERROR = new ErrorType( 8,
-            "Request failed for an unknown reason." );
+        "Request failed for an unknown reason." );
 
     /** Array for building a List of VALUES. */
-    private static final ErrorType[] values = { KRB5_KPASSWD_MALFORMED, KRB5_KPASSWD_HARDERROR,
-            KRB5_KPASSWD_AUTHERROR, KRB5_KPASSWD_SOFTERROR, KRB5_KPASSWD_ACCESSDENIED,
-            KRB5_KPASSWD_BAD_VERSION, KRB5_KPASSWD_INITIAL_FLAG_NEEDED, KRB5_KPASSWD_UNKNOWN_ERROR };
+    private static final ErrorType[] values =
+        { KRB5_KPASSWD_MALFORMED, KRB5_KPASSWD_HARDERROR, KRB5_KPASSWD_AUTHERROR, KRB5_KPASSWD_SOFTERROR,
+            KRB5_KPASSWD_ACCESSDENIED, KRB5_KPASSWD_BAD_VERSION, KRB5_KPASSWD_INITIAL_FLAG_NEEDED,
+            KRB5_KPASSWD_UNKNOWN_ERROR };
 
     /** a list of all the error type constants */
     public static final List VALUES = Collections.unmodifiableList( Arrays.asList( values ) );
@@ -64,15 +63,17 @@
     /** the value/code for the error type */
     private final int ordinal;
 
+
     /**
      * Private constructor prevents construction outside of this class.
      */
-    private ErrorType( int ordinal, String name )
+    private ErrorType(int ordinal, String name)
     {
         this.ordinal = ordinal;
         this.name = name;
     }
 
+
     /**
      * Returns the message for this Change Password error.
      *
@@ -83,6 +84,7 @@
         return name;
     }
 
+
     /**
      * Returns the message for this Change Password error.
      *
@@ -93,6 +95,7 @@
         return name;
     }
 
+
     /**
      * Compares this type to another object hopefully one that is of the same
      * type.
@@ -102,9 +105,10 @@
      */
     public int compareTo( Object that )
     {
-        return this.ordinal - ( (ErrorType) that ).ordinal;
+        return this.ordinal - ( ( ErrorType ) that ).ordinal;
     }
 
+
     /**
      * Gets the ordinal by its ordinal value.
      *
@@ -115,14 +119,15 @@
     {
         for ( int ii = 0; ii < values.length; ii++ )
         {
-            if ( values[ ii ].ordinal == ordinal )
+            if ( values[ii].ordinal == ordinal )
             {
-                return values[ ii ];
+                return values[ii];
             }
         }
 
         return KRB5_KPASSWD_UNKNOWN_ERROR;
     }
+
 
     /**
      * Gets the ordinal value associated with this Change Password error.

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/io/ChangePasswordDataDecoder.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/io/ChangePasswordDataDecoder.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/io/ChangePasswordDataDecoder.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/io/ChangePasswordDataDecoder.java Fri Feb 10 02:48:07 2006
@@ -17,6 +17,7 @@
 
 package org.apache.directory.server.changepw.io;
 
+
 import java.io.IOException;
 import java.util.Enumeration;
 
@@ -30,39 +31,40 @@
 import org.apache.directory.shared.asn1.der.DERTaggedObject;
 import org.apache.kerberos.io.decoder.PrincipalNameDecoder;
 
+
 public class ChangePasswordDataDecoder
 {
-    public ChangePasswordData decodeChangePasswordData( byte[] encodedChangePasswdData )
-            throws IOException
+    public ChangePasswordData decodeChangePasswordData( byte[] encodedChangePasswdData ) throws IOException
     {
         ASN1InputStream ais = new ASN1InputStream( encodedChangePasswdData );
 
-        DERSequence sequence = (DERSequence) ais.readObject();
+        DERSequence sequence = ( DERSequence ) ais.readObject();
 
         return decodeChangePasswdData( sequence );
     }
 
+
     protected ChangePasswordData decodeChangePasswdData( DERSequence sequence )
     {
         ChangePasswordDataModifier modifier = new ChangePasswordDataModifier();
 
         for ( Enumeration e = sequence.getObjects(); e.hasMoreElements(); )
         {
-            DERTaggedObject object = ( (DERTaggedObject) e.nextElement() );
+            DERTaggedObject object = ( ( DERTaggedObject ) e.nextElement() );
             int tag = object.getTagNo();
             DEREncodable derObject = object.getObject();
             switch ( tag )
             {
                 case 0:
-                    DEROctetString tag0 = (DEROctetString) derObject;
+                    DEROctetString tag0 = ( DEROctetString ) derObject;
                     modifier.setNewPassword( tag0.getOctets() );
                     break;
                 case 1:
-                    DERSequence tag1 = (DERSequence) derObject;
+                    DERSequence tag1 = ( DERSequence ) derObject;
                     modifier.setTargetName( PrincipalNameDecoder.decode( tag1 ) );
                     break;
                 case 2:
-                    DERGeneralString tag2 = (DERGeneralString) derObject;
+                    DERGeneralString tag2 = ( DERGeneralString ) derObject;
                     modifier.setTargetRealm( tag2.getString() );
                     break;
                 default:

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/io/ChangePasswordErrorEncoder.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/io/ChangePasswordErrorEncoder.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/io/ChangePasswordErrorEncoder.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/io/ChangePasswordErrorEncoder.java Fri Feb 10 02:48:07 2006
@@ -17,6 +17,7 @@
 
 package org.apache.directory.server.changepw.io;
 
+
 import java.io.IOException;
 import java.nio.ByteBuffer;
 
@@ -24,6 +25,7 @@
 import org.apache.kerberos.io.encoder.ErrorMessageEncoder;
 import org.apache.kerberos.messages.ErrorMessage;
 
+
 public class ChangePasswordErrorEncoder
 {
     public void encode( ByteBuffer buf, ChangePasswordError message ) throws IOException
@@ -35,7 +37,7 @@
 
         short headerLength = 6;
 
-        short messageLength = (short) ( headerLength + errorBytes.length );
+        short messageLength = ( short ) ( headerLength + errorBytes.length );
         buf.putShort( messageLength );
 
         short protocolVersion = 1;

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/io/ChangePasswordReplyEncoder.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/io/ChangePasswordReplyEncoder.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/io/ChangePasswordReplyEncoder.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/io/ChangePasswordReplyEncoder.java Fri Feb 10 02:48:07 2006
@@ -17,6 +17,7 @@
 
 package org.apache.directory.server.changepw.io;
 
+
 import java.io.IOException;
 import java.nio.ByteBuffer;
 
@@ -26,6 +27,7 @@
 import org.apache.kerberos.messages.application.ApplicationReply;
 import org.apache.kerberos.messages.application.PrivateMessage;
 
+
 public class ChangePasswordReplyEncoder
 {
     public void encode( ByteBuffer buf, ChangePasswordReply message ) throws IOException
@@ -42,13 +44,13 @@
 
         short headerLength = 6;
 
-        short messageLength = (short) ( headerLength + encodedAppReply.length + privateBytes.length );
+        short messageLength = ( short ) ( headerLength + encodedAppReply.length + privateBytes.length );
 
         short protocolVersion = 1;
 
         buf.putShort( messageLength );
         buf.putShort( protocolVersion );
-        buf.putShort( (short) encodedAppReply.length );
+        buf.putShort( ( short ) encodedAppReply.length );
 
         buf.put( encodedAppReply );
         buf.put( privateBytes );

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/io/ChangePasswordRequestDecoder.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/io/ChangePasswordRequestDecoder.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/io/ChangePasswordRequestDecoder.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/io/ChangePasswordRequestDecoder.java Fri Feb 10 02:48:07 2006
@@ -16,6 +16,7 @@
  */
 package org.apache.directory.server.changepw.io;
 
+
 import java.io.IOException;
 import java.nio.ByteBuffer;
 
@@ -26,6 +27,7 @@
 import org.apache.kerberos.messages.ApplicationRequest;
 import org.apache.kerberos.messages.application.PrivateMessage;
 
+
 public class ChangePasswordRequestDecoder
 {
     public ChangePasswordRequest decode( ByteBuffer buf ) throws IOException
@@ -38,7 +40,7 @@
         short authHeaderLength = buf.getShort();
         modifier.setAuthHeaderLength( authHeaderLength );
 
-        byte[] undecodedAuthHeader = new byte[ authHeaderLength ];
+        byte[] undecodedAuthHeader = new byte[authHeaderLength];
         buf.get( undecodedAuthHeader, 0, authHeaderLength );
 
         ApplicationRequestDecoder decoder = new ApplicationRequestDecoder();
@@ -46,7 +48,7 @@
 
         modifier.setAuthHeader( authHeader );
 
-        byte[] encodedPrivate = new byte[ buf.remaining() ];
+        byte[] encodedPrivate = new byte[buf.remaining()];
         buf.get( encodedPrivate, 0, buf.remaining() );
 
         PrivateMessageDecoder privateDecoder = new PrivateMessageDecoder();

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/AbstractPasswordMessage.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/AbstractPasswordMessage.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/AbstractPasswordMessage.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/AbstractPasswordMessage.java Fri Feb 10 02:48:07 2006
@@ -16,6 +16,7 @@
  */
 package org.apache.directory.server.changepw.messages;
 
+
 abstract public class AbstractPasswordMessage
 {
     // ChangePassword protocol version number
@@ -25,23 +26,26 @@
     private short versionNumber;
     private short authHeaderLength;
 
-    protected AbstractPasswordMessage( short messageLength, short versionNumber,
-            short authHeaderLength )
+
+    protected AbstractPasswordMessage(short messageLength, short versionNumber, short authHeaderLength)
     {
         this.messageLength = messageLength;
         this.versionNumber = versionNumber;
         this.authHeaderLength = authHeaderLength;
     }
 
+
     public short getMessageLength()
     {
         return messageLength;
     }
 
+
     public short getVersionNumber()
     {
         return versionNumber;
     }
+
 
     public short getAuthHeaderLength()
     {

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/AbstractPasswordMessageModifier.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/AbstractPasswordMessageModifier.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/AbstractPasswordMessageModifier.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/AbstractPasswordMessageModifier.java Fri Feb 10 02:48:07 2006
@@ -16,21 +16,25 @@
  */
 package org.apache.directory.server.changepw.messages;
 
+
 abstract public class AbstractPasswordMessageModifier
 {
     protected short messageLength;
     protected short versionNumber;
     protected short authHeaderLength;
 
+
     public void setMessageLength( short messageLength )
     {
         this.messageLength = messageLength;
     }
 
+
     public void setProtocolVersionNumber( short versionNumber )
     {
         this.versionNumber = versionNumber;
     }
+
 
     public void setAuthHeaderLength( short authHeaderLength )
     {

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/ChangePasswordError.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/ChangePasswordError.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/ChangePasswordError.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/ChangePasswordError.java Fri Feb 10 02:48:07 2006
@@ -16,19 +16,23 @@
  */
 package org.apache.directory.server.changepw.messages;
 
+
 import org.apache.kerberos.messages.ErrorMessage;
 
+
 public class ChangePasswordError extends AbstractPasswordMessage
 {
     private ErrorMessage errorMessage;
 
-    public ChangePasswordError( short messageLength, short versionNumber, short authHeaderLength,
-            ErrorMessage errorMessage )
+
+    public ChangePasswordError(short messageLength, short versionNumber, short authHeaderLength,
+        ErrorMessage errorMessage)
     {
         super( messageLength, versionNumber, authHeaderLength );
 
         this.errorMessage = errorMessage;
     }
+
 
     public ErrorMessage getErrorMessage()
     {

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/ChangePasswordErrorModifier.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/ChangePasswordErrorModifier.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/ChangePasswordErrorModifier.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/ChangePasswordErrorModifier.java Fri Feb 10 02:48:07 2006
@@ -16,17 +16,20 @@
  */
 package org.apache.directory.server.changepw.messages;
 
+
 import org.apache.kerberos.messages.ErrorMessage;
 
+
 public class ChangePasswordErrorModifier extends AbstractPasswordMessageModifier
 {
     private ErrorMessage errorMessage;
 
+
     public ChangePasswordError getChangePasswordError()
     {
-        return new ChangePasswordError( messageLength, versionNumber, authHeaderLength,
-                errorMessage );
+        return new ChangePasswordError( messageLength, versionNumber, authHeaderLength, errorMessage );
     }
+
 
     public void setErrorMessage( ErrorMessage errorMessage )
     {

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/ChangePasswordReply.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/ChangePasswordReply.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/ChangePasswordReply.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/ChangePasswordReply.java Fri Feb 10 02:48:07 2006
@@ -16,16 +16,19 @@
  */
 package org.apache.directory.server.changepw.messages;
 
+
 import org.apache.kerberos.messages.application.ApplicationReply;
 import org.apache.kerberos.messages.application.PrivateMessage;
 
+
 public class ChangePasswordReply extends AbstractPasswordMessage
 {
     private ApplicationReply applicationReply;
     private PrivateMessage privateMessage;
 
-    public ChangePasswordReply( short messageLength, short versionNumber, short authHeaderLength,
-            ApplicationReply applicationReply, PrivateMessage privateMessage )
+
+    public ChangePasswordReply(short messageLength, short versionNumber, short authHeaderLength,
+        ApplicationReply applicationReply, PrivateMessage privateMessage)
     {
         super( messageLength, versionNumber, authHeaderLength );
 
@@ -33,10 +36,12 @@
         this.privateMessage = privateMessage;
     }
 
+
     public ApplicationReply getApplicationReply()
     {
         return applicationReply;
     }
+
 
     public PrivateMessage getPrivateMessage()
     {

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/ChangePasswordReplyModifier.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/ChangePasswordReplyModifier.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/ChangePasswordReplyModifier.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/ChangePasswordReplyModifier.java Fri Feb 10 02:48:07 2006
@@ -16,24 +16,29 @@
  */
 package org.apache.directory.server.changepw.messages;
 
+
 import org.apache.kerberos.messages.application.ApplicationReply;
 import org.apache.kerberos.messages.application.PrivateMessage;
 
+
 public class ChangePasswordReplyModifier extends AbstractPasswordMessageModifier
 {
     private ApplicationReply applicationReply;
     private PrivateMessage privateMessage;
 
+
     public ChangePasswordReply getChangePasswordReply()
     {
-        return new ChangePasswordReply( messageLength, versionNumber, authHeaderLength,
-                applicationReply, privateMessage );
+        return new ChangePasswordReply( messageLength, versionNumber, authHeaderLength, applicationReply,
+            privateMessage );
     }
 
+
     public void setApplicationReply( ApplicationReply applicationReply )
     {
         this.applicationReply = applicationReply;
     }
+
 
     public void setPrivateMessage( PrivateMessage privateMessage )
     {

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/ChangePasswordRequest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/ChangePasswordRequest.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/ChangePasswordRequest.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/ChangePasswordRequest.java Fri Feb 10 02:48:07 2006
@@ -16,16 +16,19 @@
  */
 package org.apache.directory.server.changepw.messages;
 
+
 import org.apache.kerberos.messages.ApplicationRequest;
 import org.apache.kerberos.messages.application.PrivateMessage;
 
+
 public class ChangePasswordRequest extends AbstractPasswordMessage
 {
     private ApplicationRequest authHeader;
     private PrivateMessage privateMessage;
 
-    public ChangePasswordRequest( short messageLength, short versionNumber, short authHeaderLength,
-            ApplicationRequest authHeader, PrivateMessage privateMessage )
+
+    public ChangePasswordRequest(short messageLength, short versionNumber, short authHeaderLength,
+        ApplicationRequest authHeader, PrivateMessage privateMessage)
     {
         super( messageLength, versionNumber, authHeaderLength );
 
@@ -33,10 +36,12 @@
         this.privateMessage = privateMessage;
     }
 
+
     public ApplicationRequest getAuthHeader()
     {
         return authHeader;
     }
+
 
     public PrivateMessage getPrivateMessage()
     {

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/ChangePasswordRequestModifier.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/ChangePasswordRequestModifier.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/ChangePasswordRequestModifier.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/messages/ChangePasswordRequestModifier.java Fri Feb 10 02:48:07 2006
@@ -16,24 +16,28 @@
  */
 package org.apache.directory.server.changepw.messages;
 
+
 import org.apache.kerberos.messages.ApplicationRequest;
 import org.apache.kerberos.messages.application.PrivateMessage;
 
+
 public class ChangePasswordRequestModifier extends AbstractPasswordMessageModifier
 {
     private ApplicationRequest authHeader;
     private PrivateMessage privateMessage;
 
+
     public ChangePasswordRequest getChangePasswordMessage()
     {
-        return new ChangePasswordRequest( messageLength, versionNumber,
-                authHeaderLength, authHeader, privateMessage );
+        return new ChangePasswordRequest( messageLength, versionNumber, authHeaderLength, authHeader, privateMessage );
     }
 
+
     public void setAuthHeader( ApplicationRequest authHeader )
     {
         this.authHeader = authHeader;
     }
+
 
     public void setPrivateMessage( PrivateMessage privateMessage )
     {

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/protocol/ChangePasswordDecoder.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/protocol/ChangePasswordDecoder.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/protocol/ChangePasswordDecoder.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/protocol/ChangePasswordDecoder.java Fri Feb 10 02:48:07 2006
@@ -17,6 +17,7 @@
 
 package org.apache.directory.server.changepw.protocol;
 
+
 import java.io.IOException;
 
 import org.apache.directory.server.changepw.io.ChangePasswordRequestDecoder;
@@ -25,6 +26,7 @@
 import org.apache.mina.filter.codec.ProtocolDecoder;
 import org.apache.mina.filter.codec.ProtocolDecoderOutput;
 
+
 public class ChangePasswordDecoder implements ProtocolDecoder
 {
     public void decode( IoSession session, ByteBuffer in, ProtocolDecoderOutput out ) throws IOException
@@ -32,6 +34,7 @@
         ChangePasswordRequestDecoder decoder = new ChangePasswordRequestDecoder();
         out.write( decoder.decode( in.buf() ) );
     }
+
 
     public void dispose( IoSession session ) throws Exception
     {

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/protocol/ChangePasswordEncoder.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/protocol/ChangePasswordEncoder.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/protocol/ChangePasswordEncoder.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/protocol/ChangePasswordEncoder.java Fri Feb 10 02:48:07 2006
@@ -17,6 +17,7 @@
 
 package org.apache.directory.server.changepw.protocol;
 
+
 import java.io.IOException;
 
 import org.apache.directory.server.changepw.io.ChangePasswordErrorEncoder;
@@ -28,6 +29,7 @@
 import org.apache.mina.filter.codec.ProtocolEncoder;
 import org.apache.mina.filter.codec.ProtocolEncoderOutput;
 
+
 public class ChangePasswordEncoder implements ProtocolEncoder
 {
     public void encode( IoSession session, Object message, ProtocolEncoderOutput out ) throws IOException
@@ -36,13 +38,13 @@
 
         if ( message instanceof ChangePasswordReply )
         {
-            encodeReply( (ChangePasswordReply) message, buf );
+            encodeReply( ( ChangePasswordReply ) message, buf );
         }
         else
         {
             if ( message instanceof ChangePasswordError )
             {
-                encodeError( (ChangePasswordError) message, buf );
+                encodeError( ( ChangePasswordError ) message, buf );
             }
         }
 
@@ -51,6 +53,7 @@
         out.write( buf );
     }
 
+
     private void encodeReply( ChangePasswordReply reply, ByteBuffer buf ) throws IOException
     {
         ChangePasswordReplyEncoder encoder = new ChangePasswordReplyEncoder();
@@ -58,12 +61,14 @@
         encoder.encode( buf.buf(), reply );
     }
 
+
     private void encodeError( ChangePasswordError error, ByteBuffer buf ) throws IOException
     {
         ChangePasswordErrorEncoder encoder = new ChangePasswordErrorEncoder();
 
         encoder.encode( buf.buf(), error );
     }
+
 
     public void dispose( IoSession arg0 ) throws Exception
     {

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/protocol/ChangePasswordProtocolCodecFactory.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/protocol/ChangePasswordProtocolCodecFactory.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/protocol/ChangePasswordProtocolCodecFactory.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/protocol/ChangePasswordProtocolCodecFactory.java Fri Feb 10 02:48:07 2006
@@ -17,29 +17,34 @@
 
 package org.apache.directory.server.changepw.protocol;
 
+
 import org.apache.mina.filter.codec.ProtocolCodecFactory;
 import org.apache.mina.filter.codec.ProtocolDecoder;
 import org.apache.mina.filter.codec.ProtocolEncoder;
 
+
 public class ChangePasswordProtocolCodecFactory implements ProtocolCodecFactory
 {
-    private static final ChangePasswordProtocolCodecFactory INSTANCE = 
-        new ChangePasswordProtocolCodecFactory();
+    private static final ChangePasswordProtocolCodecFactory INSTANCE = new ChangePasswordProtocolCodecFactory();
+
 
     public static ChangePasswordProtocolCodecFactory getInstance()
     {
         return INSTANCE;
     }
 
+
     private ChangePasswordProtocolCodecFactory()
     {
     }
-    
+
+
     public ProtocolEncoder getEncoder()
     {
         // Create a new encoder.
         return new ChangePasswordEncoder();
     }
+
 
     public ProtocolDecoder getDecoder()
     {

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/protocol/ChangePasswordProtocolHandler.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/protocol/ChangePasswordProtocolHandler.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/protocol/ChangePasswordProtocolHandler.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/protocol/ChangePasswordProtocolHandler.java Fri Feb 10 02:48:07 2006
@@ -17,6 +17,7 @@
 
 package org.apache.directory.server.changepw.protocol;
 
+
 import java.net.InetAddress;
 import java.net.InetSocketAddress;
 
@@ -33,6 +34,7 @@
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+
 public class ChangePasswordProtocolHandler implements IoHandler
 {
     private static final Logger log = LoggerFactory.getLogger( ChangePasswordProtocolHandler.class );
@@ -42,7 +44,8 @@
 
     private Command changepwService;
 
-    public ChangePasswordProtocolHandler( ChangePasswordConfiguration config, PrincipalStore store )
+
+    public ChangePasswordProtocolHandler(ChangePasswordConfiguration config, PrincipalStore store)
     {
         this.config = config;
         this.store = store;
@@ -50,43 +53,47 @@
         changepwService = new ChangePasswordChain();
     }
 
+
     public void sessionCreated( IoSession session ) throws Exception
     {
-        log.debug( "{} CREATED", session.getRemoteAddress());
-        
-        session.getFilterChain().addFirst(
-                "codec",
-                new ProtocolCodecFilter(
-                        ChangePasswordProtocolCodecFactory.getInstance() ) );
+        log.debug( "{} CREATED", session.getRemoteAddress() );
+
+        session.getFilterChain().addFirst( "codec",
+            new ProtocolCodecFilter( ChangePasswordProtocolCodecFactory.getInstance() ) );
     }
 
+
     public void sessionOpened( IoSession session )
     {
-        log.debug( "{} OPENED", session.getRemoteAddress());
+        log.debug( "{} OPENED", session.getRemoteAddress() );
     }
 
+
     public void sessionClosed( IoSession session )
     {
-        log.debug( "{} CLOSED", session.getRemoteAddress());
+        log.debug( "{} CLOSED", session.getRemoteAddress() );
     }
 
+
     public void sessionIdle( IoSession session, IdleStatus status )
     {
         log.debug( "{} IDLE({})", session.getRemoteAddress(), status );
     }
 
+
     public void exceptionCaught( IoSession session, Throwable cause )
     {
-        log.debug( session.getRemoteAddress() + " EXCEPTION", cause);
+        log.debug( session.getRemoteAddress() + " EXCEPTION", cause );
         session.close();
     }
 
+
     public void messageReceived( IoSession session, Object message )
     {
         log.debug( "{} RCVD: {}", session.getRemoteAddress(), message );
 
-        InetAddress clientAddress = ( (InetSocketAddress) session.getRemoteAddress() ).getAddress();
-        ChangePasswordRequest request = (ChangePasswordRequest) message;
+        InetAddress clientAddress = ( ( InetSocketAddress ) session.getRemoteAddress() ).getAddress();
+        ChangePasswordRequest request = ( ChangePasswordRequest ) message;
 
         try
         {
@@ -105,6 +112,7 @@
             log.error( e.getMessage() );
         }
     }
+
 
     public void messageSent( IoSession session, Object message )
     {

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/BuildReply.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/BuildReply.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/BuildReply.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/BuildReply.java Fri Feb 10 02:48:07 2006
@@ -16,6 +16,7 @@
  */
 package org.apache.directory.server.changepw.service;
 
+
 import java.net.InetAddress;
 
 import org.apache.directory.server.changepw.exceptions.ChangePasswordException;
@@ -39,14 +40,16 @@
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+
 public class BuildReply extends CommandBase
 {
     /** the log for this class */
     private static final Logger log = LoggerFactory.getLogger( BuildReply.class );
 
+
     public boolean execute( Context context ) throws Exception
     {
-        ChangePasswordContext changepwContext = (ChangePasswordContext) context;
+        ChangePasswordContext changepwContext = ( ChangePasswordContext ) context;
 
         Authenticator authenticator = changepwContext.getAuthenticator();
         Ticket ticket = changepwContext.getTicket();
@@ -57,7 +60,8 @@
         // create priv message
         // user-data component is short result code
         EncKrbPrivPartModifier modifier = new EncKrbPrivPartModifier();
-        byte[] resultCode = { (byte) 0x00, (byte) 0x00 };
+        byte[] resultCode =
+            { ( byte ) 0x00, ( byte ) 0x00 };
         modifier.setUserData( resultCode );
 
         modifier.setSenderAddress( new HostAddress( InetAddress.getLocalHost() ) );

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/ChangePasswordChain.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/ChangePasswordChain.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/ChangePasswordChain.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/ChangePasswordChain.java Fri Feb 10 02:48:07 2006
@@ -16,10 +16,12 @@
  */
 package org.apache.directory.server.changepw.service;
 
+
 import org.apache.directory.server.protocol.shared.chain.impl.ChainBase;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+
 /**
  * Kerberos Change Password and Set Password Protocols (RFC 3244)
  */
@@ -27,6 +29,7 @@
 {
     /** the logger for this class */
     private static final Logger log = LoggerFactory.getLogger( ChangePasswordChain.class );
+
 
     public ChangePasswordChain()
     {

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/ChangePasswordContext.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/ChangePasswordContext.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/ChangePasswordContext.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/ChangePasswordContext.java Fri Feb 10 02:48:07 2006
@@ -16,6 +16,7 @@
  */
 package org.apache.directory.server.changepw.service;
 
+
 import java.net.InetAddress;
 
 import org.apache.directory.server.changepw.ChangePasswordConfiguration;
@@ -29,6 +30,7 @@
 import org.apache.kerberos.store.PrincipalStore;
 import org.apache.kerberos.store.PrincipalStoreEntry;
 
+
 public class ChangePasswordContext extends ContextBase
 {
     private static final long serialVersionUID = -5124209294966799740L;
@@ -47,6 +49,7 @@
     private LockBox lockBox;
     private String password;
 
+
     /**
      * @return Returns the replayCache.
      */
@@ -55,6 +58,7 @@
         return replayCache;
     }
 
+
     /**
      * @param replayCache The replayCache to set.
      */
@@ -63,6 +67,7 @@
         this.replayCache = replayCache;
     }
 
+
     /**
      * @return Returns the serverEntry.
      */
@@ -71,6 +76,7 @@
         return serverEntry;
     }
 
+
     /**
      * @param serverEntry The serverEntry to set.
      */
@@ -79,6 +85,7 @@
         this.serverEntry = serverEntry;
     }
 
+
     /**
      * @return Returns the config.
      */
@@ -87,6 +94,7 @@
         return config;
     }
 
+
     /**
      * @param config The config to set.
      */
@@ -95,6 +103,7 @@
         this.config = config;
     }
 
+
     /**
      * @return Returns the reply.
      */
@@ -103,6 +112,7 @@
         return reply;
     }
 
+
     /**
      * @param reply The reply to set.
      */
@@ -111,6 +121,7 @@
         this.reply = reply;
     }
 
+
     /**
      * @return Returns the request.
      */
@@ -119,6 +130,7 @@
         return request;
     }
 
+
     /**
      * @param request The request to set.
      */
@@ -127,6 +139,7 @@
         this.request = request;
     }
 
+
     /**
      * @return Returns the store.
      */
@@ -135,6 +148,7 @@
         return store;
     }
 
+
     /**
      * @param store The store to set.
      */
@@ -143,6 +157,7 @@
         this.store = store;
     }
 
+
     /**
      * @return Returns the lockBox.
      */
@@ -151,6 +166,7 @@
         return lockBox;
     }
 
+
     /**
      * @param lockBox The lockBox to set.
      */
@@ -159,6 +175,7 @@
         this.lockBox = lockBox;
     }
 
+
     /**
      * @return Returns the authenticator.
      */
@@ -167,6 +184,7 @@
         return authenticator;
     }
 
+
     /**
      * @param authenticator The authenticator to set.
      */
@@ -175,6 +193,7 @@
         this.authenticator = authenticator;
     }
 
+
     /**
      * @return Returns the authHeader.
      */
@@ -183,6 +202,7 @@
         return authHeader;
     }
 
+
     /**
      * @param authHeader The authHeader to set.
      */
@@ -191,6 +211,7 @@
         this.authHeader = authHeader;
     }
 
+
     /**
      * @return Returns the ticket.
      */
@@ -199,6 +220,7 @@
         return ticket;
     }
 
+
     /**
      * @param ticket The ticket to set.
      */
@@ -207,6 +229,7 @@
         this.ticket = ticket;
     }
 
+
     /**
      * @return Returns the clientAddress.
      */
@@ -215,6 +238,7 @@
         return clientAddress;
     }
 
+
     /**
      * @param clientAddress The clientAddress to set.
      */
@@ -223,6 +247,7 @@
         this.clientAddress = clientAddress;
     }
 
+
     /**
      * @return Returns the password.
      */
@@ -230,6 +255,7 @@
     {
         return password;
     }
+
 
     /**
      * @param password The password to set.

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/ChangePasswordExceptionHandler.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/ChangePasswordExceptionHandler.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/ChangePasswordExceptionHandler.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/ChangePasswordExceptionHandler.java Fri Feb 10 02:48:07 2006
@@ -16,6 +16,7 @@
  */
 package org.apache.directory.server.changepw.service;
 
+
 import java.nio.ByteBuffer;
 
 import javax.security.auth.kerberos.KerberosPrincipal;
@@ -34,6 +35,7 @@
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+
 /**
  * A {@link Command} for helping convert a {@link ChangePasswordException} into
  * an {@link ErrorMessage} to be returned to clients.
@@ -45,11 +47,13 @@
 {
     private static final Logger log = LoggerFactory.getLogger( ChangePasswordExceptionHandler.class );
 
+
     public boolean execute( Context context ) throws Exception
     {
         return CONTINUE_CHAIN;
     }
 
+
     public boolean postprocess( Context context, Exception exception )
     {
         if ( exception == null )
@@ -66,9 +70,9 @@
             log.info( exception.getMessage() );
         }
 
-        ChangePasswordContext changepwContext = (ChangePasswordContext) context;
+        ChangePasswordContext changepwContext = ( ChangePasswordContext ) context;
         ChangePasswordConfiguration config = changepwContext.getConfig();
-        ChangePasswordException cpe = (ChangePasswordException) exception;
+        ChangePasswordException cpe = ( ChangePasswordException ) exception;
 
         ErrorMessage errorMessage = getErrorMessage( config.getChangepwPrincipal(), cpe );
 
@@ -80,6 +84,7 @@
         return STOP_CHAIN;
     }
 
+
     private ErrorMessage getErrorMessage( KerberosPrincipal principal, KerberosException exception )
     {
         ErrorMessageModifier modifier = new ErrorMessageModifier();
@@ -96,9 +101,10 @@
         return modifier.getErrorMessage();
     }
 
+
     private byte[] buildExplanatoryData( KerberosException exception )
     {
-        short resultCode = (short) exception.getErrorCode();
+        short resultCode = ( short ) exception.getErrorCode();
         byte[] resultString = exception.getExplanatoryData();
 
         ByteBuffer byteBuffer = ByteBuffer.allocate( 256 );
@@ -106,7 +112,7 @@
         byteBuffer.put( resultString );
 
         byteBuffer.flip();
-        byte[] explanatoryData = new byte[ byteBuffer.remaining() ];
+        byte[] explanatoryData = new byte[byteBuffer.remaining()];
         byteBuffer.get( explanatoryData, 0, explanatoryData.length );
 
         return explanatoryData;

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/CheckPasswordPolicy.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/CheckPasswordPolicy.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/CheckPasswordPolicy.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/CheckPasswordPolicy.java Fri Feb 10 02:48:07 2006
@@ -16,6 +16,7 @@
  */
 package org.apache.directory.server.changepw.service;
 
+
 import java.util.ArrayList;
 import java.util.Iterator;
 import java.util.List;
@@ -31,6 +32,7 @@
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+
 /**
  * A basic password policy check using well-established methods.
  * 
@@ -42,9 +44,10 @@
     /** the log for this class */
     private static final Logger log = LoggerFactory.getLogger( CheckPasswordPolicy.class );
 
+
     public boolean execute( Context context ) throws Exception
     {
-        ChangePasswordContext changepwContext = (ChangePasswordContext) context;
+        ChangePasswordContext changepwContext = ( ChangePasswordContext ) context;
 
         ChangePasswordConfiguration config = changepwContext.getConfig();
         Authenticator authenticator = changepwContext.getAuthenticator();
@@ -70,6 +73,7 @@
         throw new ChangePasswordException( ErrorType.KRB5_KPASSWD_SOFTERROR, explanatoryData );
     }
 
+
     /**
      * Tests that:
      * The password is at least six characters long.
@@ -79,9 +83,10 @@
     boolean isValid( String username, String password, int passwordLength, int categoryCount, int tokenSize )
     {
         return isValidPasswordLength( password, passwordLength ) && isValidCategoryCount( password, categoryCount )
-                && isValidUsernameSubstring( username, password, tokenSize );
+            && isValidUsernameSubstring( username, password, tokenSize );
     }
 
+
     /**
      * The password is at least six characters long.
      */
@@ -90,6 +95,7 @@
         return password.length() >= passwordLength;
     }
 
+
     /**
      * The password contains characters from at least three of the following four categories:
      * English uppercase characters (A - Z)
@@ -108,25 +114,25 @@
 
         for ( int ii = 0; ii < characters.length; ii++ )
         {
-            if ( Character.isLowerCase( characters[ ii ] ) )
+            if ( Character.isLowerCase( characters[ii] ) )
             {
                 lowercase = 1;
             }
             else
             {
-                if ( Character.isUpperCase( characters[ ii ] ) )
+                if ( Character.isUpperCase( characters[ii] ) )
                 {
                     uppercase = 1;
                 }
                 else
                 {
-                    if ( Character.isDigit( characters[ ii ] ) )
+                    if ( Character.isDigit( characters[ii] ) )
                     {
                         digit = 1;
                     }
                     else
                     {
-                        if ( !Character.isLetterOrDigit( characters[ ii ] ) )
+                        if ( !Character.isLetterOrDigit( characters[ii] ) )
                         {
                             nonAlphaNumeric = 1;
                         }
@@ -138,6 +144,7 @@
         return ( uppercase + lowercase + digit + nonAlphaNumeric ) >= categoryCount;
     }
 
+
     /**
      * The password does not contain three letter (or more) tokens from the user's account name.
      * 
@@ -156,9 +163,9 @@
 
         for ( int ii = 0; ii < tokens.length; ii++ )
         {
-            if ( tokens[ ii ].length() >= tokenSize )
+            if ( tokens[ii].length() >= tokenSize )
             {
-                if ( password.matches( "(?i).*" + tokens[ ii ] + ".*" ) )
+                if ( password.matches( "(?i).*" + tokens[ii] + ".*" ) )
                 {
                     return false;
                 }
@@ -168,8 +175,9 @@
         return true;
     }
 
+
     private String buildErrorMessage( String username, String password, int passwordLength, int categoryCount,
-            int tokenSize )
+        int tokenSize )
     {
         List violations = new ArrayList();
 
@@ -194,7 +202,7 @@
 
         while ( it.hasNext() )
         {
-            sb.append( (String) it.next() );
+            sb.append( ( String ) it.next() );
 
             if ( it.hasNext() )
             {

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/ConfigureChangePasswordChain.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/ConfigureChangePasswordChain.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/ConfigureChangePasswordChain.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/ConfigureChangePasswordChain.java Fri Feb 10 02:48:07 2006
@@ -16,20 +16,23 @@
  */
 package org.apache.directory.server.changepw.service;
 
+
 import org.apache.directory.server.protocol.shared.chain.Context;
 import org.apache.directory.server.protocol.shared.chain.impl.CommandBase;
 import org.apache.kerberos.replay.InMemoryReplayCache;
 import org.apache.kerberos.replay.ReplayCache;
 import org.apache.kerberos.service.LockBox;
 
+
 public class ConfigureChangePasswordChain extends CommandBase
 {
     private static final ReplayCache replayCache = new InMemoryReplayCache();
     private static final LockBox lockBox = new LockBox();
 
+
     public boolean execute( Context context ) throws Exception
     {
-        ChangePasswordContext changepwContext = (ChangePasswordContext) context;
+        ChangePasswordContext changepwContext = ( ChangePasswordContext ) context;
 
         changepwContext.setReplayCache( replayCache );
         changepwContext.setLockBox( lockBox );

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/ExtractPassword.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/ExtractPassword.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/ExtractPassword.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/ExtractPassword.java Fri Feb 10 02:48:07 2006
@@ -16,6 +16,7 @@
  */
 package org.apache.directory.server.changepw.service;
 
+
 import java.io.UnsupportedEncodingException;
 
 import org.apache.directory.server.changepw.exceptions.ChangePasswordException;
@@ -35,16 +36,18 @@
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+
 public class ExtractPassword extends CommandBase
 {
     /** the log for this class */
     private static final Logger log = LoggerFactory.getLogger( ExtractPassword.class );
 
+
     public boolean execute( Context context ) throws Exception
     {
-        ChangePasswordContext changepwContext = (ChangePasswordContext) context;
+        ChangePasswordContext changepwContext = ( ChangePasswordContext ) context;
 
-        ChangePasswordRequest request = (ChangePasswordRequest) changepwContext.getRequest();
+        ChangePasswordRequest request = ( ChangePasswordRequest ) changepwContext.getRequest();
         Authenticator authenticator = changepwContext.getAuthenticator();
         LockBox lockBox = changepwContext.getLockBox();
 
@@ -63,7 +66,7 @@
 
         try
         {
-            privatePart = (EncKrbPrivPart) lockBox.unseal( EncKrbPrivPart.class, subSessionKey, encReqPrivPart );
+            privatePart = ( EncKrbPrivPart ) lockBox.unseal( EncKrbPrivPart.class, subSessionKey, encReqPrivPart );
         }
         catch ( KerberosException ke )
         {
@@ -73,7 +76,7 @@
 
         ChangePasswordData passwordData = null;
 
-        if ( request.getVersionNumber() == (short) 1 )
+        if ( request.getVersionNumber() == ( short ) 1 )
         {
             // Use protocol version 0x0001, the legacy Kerberos change password protocol
             ChangePasswordDataModifier modifier = new ChangePasswordDataModifier();

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/GetAuthHeader.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/GetAuthHeader.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/GetAuthHeader.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/GetAuthHeader.java Fri Feb 10 02:48:07 2006
@@ -16,12 +16,14 @@
  */
 package org.apache.directory.server.changepw.service;
 
+
 import org.apache.directory.server.changepw.messages.ChangePasswordRequest;
 import org.apache.directory.server.protocol.shared.chain.Context;
 import org.apache.directory.server.protocol.shared.chain.impl.CommandBase;
 import org.apache.kerberos.messages.ApplicationRequest;
 import org.apache.kerberos.messages.components.Ticket;
 
+
 /*
  * differs from the TGS getAuthHeader by not verifying the presence of TGS_REQ
  */
@@ -29,8 +31,8 @@
 {
     public boolean execute( Context context ) throws Exception
     {
-        ChangePasswordContext changepwContext = (ChangePasswordContext) context;
-        ChangePasswordRequest request = (ChangePasswordRequest) changepwContext.getRequest();
+        ChangePasswordContext changepwContext = ( ChangePasswordContext ) context;
+        ChangePasswordRequest request = ( ChangePasswordRequest ) changepwContext.getRequest();
 
         ApplicationRequest authHeader = request.getAuthHeader();
         Ticket ticket = authHeader.getTicket();

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/GetServerEntry.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/GetServerEntry.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/GetServerEntry.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/GetServerEntry.java Fri Feb 10 02:48:07 2006
@@ -16,6 +16,7 @@
  */
 package org.apache.directory.server.changepw.service;
 
+
 import javax.security.auth.kerberos.KerberosPrincipal;
 
 import org.apache.directory.server.protocol.shared.chain.Context;
@@ -23,17 +24,17 @@
 import org.apache.kerberos.service.GetPrincipalStoreEntry;
 import org.apache.kerberos.store.PrincipalStore;
 
+
 public class GetServerEntry extends GetPrincipalStoreEntry
 {
     public boolean execute( Context context ) throws Exception
     {
-        ChangePasswordContext changepwContext = (ChangePasswordContext) context;
+        ChangePasswordContext changepwContext = ( ChangePasswordContext ) context;
 
         KerberosPrincipal principal = changepwContext.getTicket().getServerPrincipal();
         PrincipalStore store = changepwContext.getStore();
 
-        changepwContext.setServerEntry( getEntry( principal, store,
-                ErrorType.KDC_ERR_S_PRINCIPAL_UNKNOWN ) );
+        changepwContext.setServerEntry( getEntry( principal, store, ErrorType.KDC_ERR_S_PRINCIPAL_UNKNOWN ) );
 
         return CONTINUE_CHAIN;
     }

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/MonitorContext.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/MonitorContext.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/MonitorContext.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/MonitorContext.java Fri Feb 10 02:48:07 2006
@@ -16,6 +16,7 @@
  */
 package org.apache.directory.server.changepw.service;
 
+
 import java.net.InetAddress;
 
 import javax.security.auth.kerberos.KerberosPrincipal;
@@ -33,18 +34,20 @@
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+
 public class MonitorContext extends CommandBase
 {
     /** the log for this class */
     private static final Logger log = LoggerFactory.getLogger( MonitorContext.class );
 
+
     public boolean execute( Context context ) throws Exception
     {
         if ( log.isDebugEnabled() )
         {
             try
             {
-                ChangePasswordContext changepwContext = (ChangePasswordContext) context;
+                ChangePasswordContext changepwContext = ( ChangePasswordContext ) context;
 
                 PrincipalStore store = changepwContext.getStore();
                 ApplicationRequest authHeader = changepwContext.getAuthHeader();

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/MonitorReply.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/MonitorReply.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/MonitorReply.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/MonitorReply.java Fri Feb 10 02:48:07 2006
@@ -16,6 +16,7 @@
  */
 package org.apache.directory.server.changepw.service;
 
+
 import org.apache.directory.server.changepw.messages.ChangePasswordReply;
 import org.apache.directory.server.protocol.shared.chain.Context;
 import org.apache.directory.server.protocol.shared.chain.impl.CommandBase;
@@ -24,20 +25,22 @@
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+
 public class MonitorReply extends CommandBase
 {
     /** the log for this class */
     private static final Logger log = LoggerFactory.getLogger( MonitorReply.class );
 
+
     public boolean execute( Context context ) throws Exception
     {
         if ( log.isDebugEnabled() )
         {
             try
             {
-                ChangePasswordContext changepwContext = (ChangePasswordContext) context;
+                ChangePasswordContext changepwContext = ( ChangePasswordContext ) context;
 
-                ChangePasswordReply reply = (ChangePasswordReply) changepwContext.getReply();
+                ChangePasswordReply reply = ( ChangePasswordReply ) changepwContext.getReply();
                 ApplicationReply appReply = reply.getApplicationReply();
                 PrivateMessage priv = reply.getPrivateMessage();
 

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/MonitorRequest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/MonitorRequest.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/MonitorRequest.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/MonitorRequest.java Fri Feb 10 02:48:07 2006
@@ -16,26 +16,29 @@
  */
 package org.apache.directory.server.changepw.service;
 
+
 import org.apache.directory.server.changepw.messages.ChangePasswordRequest;
 import org.apache.directory.server.protocol.shared.chain.Context;
 import org.apache.directory.server.protocol.shared.chain.impl.CommandBase;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+
 public class MonitorRequest extends CommandBase
 {
     /** the log for this class */
     private static final Logger log = LoggerFactory.getLogger( MonitorRequest.class );
 
+
     public boolean execute( Context context ) throws Exception
     {
         if ( log.isDebugEnabled() )
         {
             try
             {
-                ChangePasswordContext changepwContext = (ChangePasswordContext) context;
+                ChangePasswordContext changepwContext = ( ChangePasswordContext ) context;
 
-                ChangePasswordRequest request = (ChangePasswordRequest) changepwContext.getRequest();
+                ChangePasswordRequest request = ( ChangePasswordRequest ) changepwContext.getRequest();
                 short authHeaderLength = request.getAuthHeaderLength();
                 short messageLength = request.getMessageLength();
                 short versionNumber = request.getVersionNumber();

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/ProcessPasswordChange.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/ProcessPasswordChange.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/ProcessPasswordChange.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/ProcessPasswordChange.java Fri Feb 10 02:48:07 2006
@@ -16,6 +16,7 @@
  */
 package org.apache.directory.server.changepw.service;
 
+
 import javax.security.auth.kerberos.KerberosKey;
 import javax.security.auth.kerberos.KerberosPrincipal;
 
@@ -28,14 +29,16 @@
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+
 public class ProcessPasswordChange extends CommandBase
 {
     /** the log for this class */
     private static final Logger log = LoggerFactory.getLogger( ProcessPasswordChange.class );
 
+
     public boolean execute( Context context ) throws Exception
     {
-        ChangePasswordContext changepwContext = (ChangePasswordContext) context;
+        ChangePasswordContext changepwContext = ( ChangePasswordContext ) context;
 
         PrincipalStore store = changepwContext.getStore();
         Authenticator authenticator = changepwContext.getAuthenticator();

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/VerifyServiceTicket.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/VerifyServiceTicket.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/VerifyServiceTicket.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/VerifyServiceTicket.java Fri Feb 10 02:48:07 2006
@@ -16,6 +16,7 @@
  */
 package org.apache.directory.server.changepw.service;
 
+
 import javax.security.auth.kerberos.KerberosPrincipal;
 
 import org.apache.directory.server.changepw.ChangePasswordConfiguration;
@@ -23,11 +24,12 @@
 import org.apache.kerberos.messages.components.Ticket;
 import org.apache.kerberos.service.VerifyTicket;
 
+
 public class VerifyServiceTicket extends VerifyTicket
 {
     public boolean execute( Context context ) throws Exception
     {
-        ChangePasswordContext changepwContext = (ChangePasswordContext) context;
+        ChangePasswordContext changepwContext = ( ChangePasswordContext ) context;
         ChangePasswordConfiguration config = changepwContext.getConfig();
         Ticket ticket = changepwContext.getTicket();
         String primaryRealm = config.getPrimaryRealm();

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/VerifyServiceTicketAuthHeader.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/VerifyServiceTicketAuthHeader.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/VerifyServiceTicketAuthHeader.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/service/VerifyServiceTicketAuthHeader.java Fri Feb 10 02:48:07 2006
@@ -16,6 +16,7 @@
  */
 package org.apache.directory.server.changepw.service;
 
+
 import java.net.InetAddress;
 
 import org.apache.directory.server.protocol.shared.chain.Context;
@@ -27,11 +28,12 @@
 import org.apache.kerberos.service.LockBox;
 import org.apache.kerberos.service.VerifyAuthHeader;
 
+
 public class VerifyServiceTicketAuthHeader extends VerifyAuthHeader
 {
     public boolean execute( Context context ) throws Exception
     {
-        ChangePasswordContext changepwContext = (ChangePasswordContext) context;
+        ChangePasswordContext changepwContext = ( ChangePasswordContext ) context;
 
         ApplicationRequest authHeader = changepwContext.getAuthHeader();
         Ticket ticket = changepwContext.getTicket();
@@ -43,7 +45,7 @@
         LockBox lockBox = changepwContext.getLockBox();
 
         Authenticator authenticator = verifyAuthHeader( authHeader, ticket, serverKey, clockSkew, replayCache,
-                emptyAddressesAllowed, clientAddress, lockBox );
+            emptyAddressesAllowed, clientAddress, lockBox );
 
         changepwContext.setAuthenticator( authenticator );
 

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/value/ChangePasswordData.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/value/ChangePasswordData.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/value/ChangePasswordData.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/value/ChangePasswordData.java Fri Feb 10 02:48:07 2006
@@ -16,30 +16,36 @@
  */
 package org.apache.directory.server.changepw.value;
 
+
 import org.apache.kerberos.messages.value.PrincipalName;
 
+
 public class ChangePasswordData
 {
     private byte[] password;
     private PrincipalName principalName;
     private String realm;
 
-    public ChangePasswordData( byte[] password, PrincipalName principalName, String realm )
+
+    public ChangePasswordData(byte[] password, PrincipalName principalName, String realm)
     {
         this.password = password;
         this.principalName = principalName;
         this.realm = realm;
     }
 
+
     public byte[] getPassword()
     {
         return password;
     }
 
+
     public PrincipalName getPrincipalName()
     {
         return principalName;
     }
+
 
     public String getRealm()
     {

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/value/ChangePasswordDataModifier.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/value/ChangePasswordDataModifier.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/value/ChangePasswordDataModifier.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/main/java/org/apache/directory/server/changepw/value/ChangePasswordDataModifier.java Fri Feb 10 02:48:07 2006
@@ -16,28 +16,34 @@
  */
 package org.apache.directory.server.changepw.value;
 
+
 import org.apache.kerberos.messages.value.PrincipalName;
 
+
 public class ChangePasswordDataModifier
 {
     private byte[] password;
     private PrincipalName principalName;
     private String realm;
 
+
     public ChangePasswordData getChangePasswdData()
     {
         return new ChangePasswordData( password, principalName, realm );
     }
 
+
     public void setNewPassword( byte[] password )
     {
         this.password = password;
     }
 
+
     public void setTargetName( PrincipalName principalName )
     {
         this.principalName = principalName;
     }
+
 
     public void setTargetRealm( String realm )
     {

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/test/java/org/apache/directory/server/changepw/service/CheckPasswordPolicyTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/test/java/org/apache/directory/server/changepw/service/CheckPasswordPolicyTest.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/test/java/org/apache/directory/server/changepw/service/CheckPasswordPolicyTest.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-changepw/src/test/java/org/apache/directory/server/changepw/service/CheckPasswordPolicyTest.java Fri Feb 10 02:48:07 2006
@@ -16,12 +16,14 @@
  */
 package org.apache.directory.server.changepw.service;
 
+
 import javax.security.auth.kerberos.KerberosPrincipal;
 
 import org.apache.directory.server.changepw.service.CheckPasswordPolicy;
 
 import junit.framework.TestCase;
 
+
 /**
  * Tests {@link CheckPasswordPolicy}.
  * 
@@ -36,6 +38,7 @@
 
     private CheckPasswordPolicy policy = new CheckPasswordPolicy();
 
+
     public void testGoodPassword()
     {
         String username = "Enrique Rodriguez";
@@ -46,6 +49,7 @@
         assertTrue( policy.isValid( username, password, passwordLength, categoryCount, tokenSize ) );
     }
 
+
     public void testBadPassword()
     {
         String username = "Erin Randall";
@@ -55,6 +59,7 @@
         assertFalse( policy.isValidUsernameSubstring( username, password, tokenSize ) );
         assertFalse( policy.isValid( username, password, passwordLength, categoryCount, tokenSize ) );
     }
+
 
     public void testPrincipalAsUsername()
     {

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-dhcp/src/main/java/org/apache/directory/server/dhcp/DhcpException.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-dhcp/src/main/java/org/apache/directory/server/dhcp/DhcpException.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-dhcp/src/main/java/org/apache/directory/server/dhcp/DhcpException.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-dhcp/src/main/java/org/apache/directory/server/dhcp/DhcpException.java Fri Feb 10 02:48:07 2006
@@ -22,6 +22,7 @@
 {
     private static final long serialVersionUID = 3985748516732135317L;
 
+
     /**
      * This empty constructor is used if no 
      * explanation of the DHCP exception is required.
@@ -31,15 +32,15 @@
         super();
     }
 
+
     /**
      * This constructor is used if a description of the event
      * that caused the exception is required.
      * 
      * @param description this is a description of the exception
      */
-    public DhcpException( String description )
+    public DhcpException(String description)
     {
         super( description );
     }
 }
-

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-dhcp/src/main/java/org/apache/directory/server/dhcp/DhcpService.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-dhcp/src/main/java/org/apache/directory/server/dhcp/DhcpService.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-dhcp/src/main/java/org/apache/directory/server/dhcp/DhcpService.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-dhcp/src/main/java/org/apache/directory/server/dhcp/DhcpService.java Fri Feb 10 02:48:07 2006
@@ -17,13 +17,14 @@
 
 package org.apache.directory.server.dhcp;
 
+
 import org.apache.directory.server.dhcp.messages.DhcpMessage;
 
+
 /**
  * DHCP Protocol (RFC 2131, RFC 2132)
  */
 public interface DhcpService
 {
-	public DhcpMessage getReplyFor( DhcpMessage request );
+    public DhcpMessage getReplyFor( DhcpMessage request );
 }
-

Modified: directory/sandbox/akarasulu/rc1/apacheds/protocol-dhcp/src/main/java/org/apache/directory/server/dhcp/io/DhcpMessageDecoder.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/protocol-dhcp/src/main/java/org/apache/directory/server/dhcp/io/DhcpMessageDecoder.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/protocol-dhcp/src/main/java/org/apache/directory/server/dhcp/io/DhcpMessageDecoder.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/protocol-dhcp/src/main/java/org/apache/directory/server/dhcp/io/DhcpMessageDecoder.java Fri Feb 10 02:48:07 2006
@@ -17,6 +17,7 @@
 
 package org.apache.directory.server.dhcp.io;
 
+
 import java.nio.ByteBuffer;
 
 import org.apache.directory.server.dhcp.DhcpException;
@@ -27,66 +28,65 @@
 
 public class DhcpMessageDecoder
 {
-	/**
-	 * Convert a byte buffer into a DhcpMessage.
-	 * 
-	 * @return a DhcpMessage.
-	 * @param buffer ByteBuffer to convert to a DhcpMessage object
-	 */
-	public DhcpMessage decode( ByteBuffer buffer ) throws DhcpException
-	{
-		/**
-		 * TODO - need to figure out why the buffer needs to be rewound.
-		 */
-		buffer.rewind();
-		
-		DhcpMessageModifier modifier = new DhcpMessageModifier();
-		
-		modifier.setMessageType( MessageType.DHCPDISCOVER );
-		
-		modifier.setOpCode( buffer.get() );
-		modifier.setHardwareAddressType( buffer.get() );
-		
-		short hardwareAddressLength = (short)( buffer.get() & 0xff );
-		
-		modifier.setHardwareAddressLength( (byte)hardwareAddressLength );
-		modifier.setHardwareOptions( buffer.get() );
-		
-		modifier.setTransactionId( buffer.getInt() );
-		modifier.setSeconds( buffer.getShort() );
-		modifier.setFlags( buffer.getShort() );
-		
-		byte[] nextFourBytes = new byte[ 4 ];
-		
-		buffer.get( nextFourBytes );
-		modifier.setActualClientAddress( nextFourBytes );
-		
-		buffer.get( nextFourBytes );
-		modifier.setAssignedClientAddress( nextFourBytes );
-		
-		buffer.get( nextFourBytes );
-		modifier.setNextServerAddress( nextFourBytes );
-		
-		buffer.get( nextFourBytes );
-		modifier.setRelayAgentAddress( nextFourBytes );
-		
-		byte[] clientHardwareAddress = new byte[ 16 ];
-		
-		buffer.get( clientHardwareAddress );
-		modifier.setClientHardwareAddress( clientHardwareAddress );
-		
-		byte[] serverHostname = new byte[ 64 ];
-		buffer.get( serverHostname );
-		modifier.setServerHostname( serverHostname );
-		
-		byte[] bootFileName = new byte[ 128 ];
-		buffer.get( bootFileName );
-		modifier.setBootFileName( bootFileName );
-		
-		DhcpOptionsDecoder decoder = new DhcpOptionsDecoder();
-		modifier.setOptions( decoder.decode( buffer ) );
-		
-		return modifier.getDhcpMessage();
-	}
-}
+    /**
+     * Convert a byte buffer into a DhcpMessage.
+     * 
+     * @return a DhcpMessage.
+     * @param buffer ByteBuffer to convert to a DhcpMessage object
+     */
+    public DhcpMessage decode( ByteBuffer buffer ) throws DhcpException
+    {
+        /**
+         * TODO - need to figure out why the buffer needs to be rewound.
+         */
+        buffer.rewind();
+
+        DhcpMessageModifier modifier = new DhcpMessageModifier();
+
+        modifier.setMessageType( MessageType.DHCPDISCOVER );
+
+        modifier.setOpCode( buffer.get() );
+        modifier.setHardwareAddressType( buffer.get() );
+
+        short hardwareAddressLength = ( short ) ( buffer.get() & 0xff );
+
+        modifier.setHardwareAddressLength( ( byte ) hardwareAddressLength );
+        modifier.setHardwareOptions( buffer.get() );
+
+        modifier.setTransactionId( buffer.getInt() );
+        modifier.setSeconds( buffer.getShort() );
+        modifier.setFlags( buffer.getShort() );
+
+        byte[] nextFourBytes = new byte[4];
+
+        buffer.get( nextFourBytes );
+        modifier.setActualClientAddress( nextFourBytes );
 
+        buffer.get( nextFourBytes );
+        modifier.setAssignedClientAddress( nextFourBytes );
+
+        buffer.get( nextFourBytes );
+        modifier.setNextServerAddress( nextFourBytes );
+
+        buffer.get( nextFourBytes );
+        modifier.setRelayAgentAddress( nextFourBytes );
+
+        byte[] clientHardwareAddress = new byte[16];
+
+        buffer.get( clientHardwareAddress );
+        modifier.setClientHardwareAddress( clientHardwareAddress );
+
+        byte[] serverHostname = new byte[64];
+        buffer.get( serverHostname );
+        modifier.setServerHostname( serverHostname );
+
+        byte[] bootFileName = new byte[128];
+        buffer.get( bootFileName );
+        modifier.setBootFileName( bootFileName );
+
+        DhcpOptionsDecoder decoder = new DhcpOptionsDecoder();
+        modifier.setOptions( decoder.decode( buffer ) );
+
+        return modifier.getDhcpMessage();
+    }
+}



Mime
View raw message