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

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

public class AddPrincipal
extends java.lang.Object
implements ContextOperation

Command for adding a principal to a JNDI context.

Version:
$Rev: 493916 $, $Date: 2007-01-08 03:44:33 +0100 (Mon, 08 Jan 2007) $
Author:
Apache Directory Project
See Also:
Serialized Form

Field Summary
protected  PrincipalStoreEntry entry
          The Kerberos principal who is to be added.
 
Constructor Summary
AddPrincipal(PrincipalStoreEntry entry)
          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

entry

protected PrincipalStoreEntry entry
The Kerberos principal who is to be added.

Constructor Detail

AddPrincipal

public AddPrincipal(PrincipalStoreEntry entry)
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


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