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

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

public class DeletePrincipal
extends java.lang.Object
implements ContextOperation

Command for deleting a principal from a JNDI context.

Version:
$Rev: 434558 $, $Date: 2006-08-24 19:11:45 -0400 (Thu, 24 Aug 2006) $
Author:
Apache Directory Project
See Also:
Serialized Form

Field Summary
protected  javax.security.auth.kerberos.KerberosPrincipal principal
          The Kerberos principal who is to be deleted.
 
Constructor Summary
DeletePrincipal(javax.security.auth.kerberos.KerberosPrincipal principal)
          Creates the action to be used against the embedded ApacheDS DIT.
 
Method Summary
 java.lang.Object execute(javax.naming.directory.DirContext ctx, javax.naming.Name 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 is to be deleted.

Constructor Detail

DeletePrincipal

public DeletePrincipal(javax.security.auth.kerberos.KerberosPrincipal principal)
Creates the action to be used against the embedded ApacheDS DIT.

Method Detail

execute

public java.lang.Object execute(javax.naming.directory.DirContext ctx,
                                javax.naming.Name searchBaseDn)
Description copied from interface: ContextOperation
The command pattern execute method.

Specified by:
execute in interface ContextOperation
Parameters:
ctx - The context to execute the command with
searchBaseDn - The base DN for working with the context
Returns:
Object The result returned by the command