org.apache.directory.server.kerberos.shared.store.operations
Class ChangePassword

java.lang.Object
  extended by org.apache.directory.server.kerberos.shared.store.operations.ChangePassword
All Implemented Interfaces:
java.io.Serializable, DirectoryServiceOperation

public class ChangePassword
extends java.lang.Object
implements DirectoryServiceOperation

Command for changing a principal's password in a JNDI context.

Version:
$Rev: 927839 $, $Date: 2010-03-26 14:25:10 +0100 (Fri, 26 Mar 2010) $
Author:
Apache Directory Project
See Also:
Serialized Form

Field Summary
protected  java.lang.String newPassword
          The new password for the update.
protected  javax.security.auth.kerberos.KerberosPrincipal principal
          The Kerberos principal who's password is to be changed.
 
Constructor Summary
ChangePassword(javax.security.auth.kerberos.KerberosPrincipal principal, java.lang.String newPassword)
          Creates the action to be used against the embedded ApacheDS DIT.
 
Method Summary
 java.lang.Object execute(CoreSession session, org.apache.directory.shared.ldap.name.DN searchBaseDn)
          The command pattern execute method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

principal

protected javax.security.auth.kerberos.KerberosPrincipal principal
The Kerberos principal who's password is to be changed.


newPassword

protected java.lang.String newPassword
The new password for the update.

Constructor Detail

ChangePassword

public ChangePassword(javax.security.auth.kerberos.KerberosPrincipal principal,
                      java.lang.String newPassword)
Creates the action to be used against the embedded ApacheDS DIT.

Parameters:
principal - The principal to change the password for.
newPassword - The password to change.
Method Detail

execute

public java.lang.Object execute(CoreSession session,
                                org.apache.directory.shared.ldap.name.DN searchBaseDn)
                         throws java.lang.Exception
Description copied from interface: DirectoryServiceOperation
The command pattern execute method.

Specified by:
execute in interface DirectoryServiceOperation
Parameters:
session - The CoreSession to execute the command with
searchBaseDn - The base DN for working with the context
Returns:
Object The result returned by the command
Throws:
java.lang.Exception - The exception thrown by the command


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.