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

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

public class GetPrincipal
extends java.lang.Object
implements DirectoryServiceOperation

Encapsulates the action of looking up a principal in an embedded ApacheDS DIT.

Version:
$Rev: 682235 $, $Date: 2008-08-04 02:43:52 +0200 (Mo, 04 Aug 2008) $
Author:
Apache Directory Project
See Also:
Serialized Form

Constructor Summary
GetPrincipal(javax.security.auth.kerberos.KerberosPrincipal principal)
          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.LdapDN base)
          Note that the base is a relative path from the existing context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetPrincipal

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

Parameters:
principal - The principal to search for in the directory.
Method Detail

execute

public java.lang.Object execute(CoreSession session,
                                org.apache.directory.shared.ldap.name.LdapDN base)
                         throws java.lang.Exception
Note that the base is a relative path from the existing context. It is not a DN.

Specified by:
execute in interface DirectoryServiceOperation
Parameters:
session - The CoreSession to execute the command with
base - 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-2009 Apache Software Foundation. All Rights Reserved.