org.apache.directory.server.kerberos.shared.store.operations
Class StoreUtils
java.lang.Object
org.apache.directory.server.kerberos.shared.store.operations.StoreUtils
public class StoreUtils
- extends java.lang.Object
Commonly used store utility operations.
- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
Method Summary |
static org.apache.directory.shared.ldap.entry.ServerEntry |
findPrincipalEntry(CoreSession session,
org.apache.directory.shared.ldap.name.DN searchBaseDn,
java.lang.String principal)
Finds the ServerEntry associated with the Kerberos principal name. |
static org.apache.directory.shared.ldap.entry.ServerEntry |
toServerEntry(CoreSession session,
org.apache.directory.shared.ldap.name.DN dn,
PrincipalStoreEntry principalEntry)
Creates a ServerEntry for a PrincipalStoreEntry, doing what a state
factory does but for ServerEntry instead of Attributes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StoreUtils
public StoreUtils()
toServerEntry
public static org.apache.directory.shared.ldap.entry.ServerEntry toServerEntry(CoreSession session,
org.apache.directory.shared.ldap.name.DN dn,
PrincipalStoreEntry principalEntry)
throws java.lang.Exception
- Creates a ServerEntry for a PrincipalStoreEntry, doing what a state
factory does but for ServerEntry instead of Attributes.
- Parameters:
session
- the session to use to access the directory's registriesdn
- the distinguished name of the principal to beprincipalEntry
- the principal entry to convert into a ServerEntry
- Returns:
- the resultant server entry for the PrincipalStoreEntry argument
- Throws:
java.lang.Exception
- if there are problems accessing registries
findPrincipalEntry
public static org.apache.directory.shared.ldap.entry.ServerEntry findPrincipalEntry(CoreSession session,
org.apache.directory.shared.ldap.name.DN searchBaseDn,
java.lang.String principal)
throws java.lang.Exception
- Finds the ServerEntry associated with the Kerberos principal name.
- Parameters:
session
- the session to use for the searchsearchBaseDn
- the base to use while searchingprincipal
- the name of the principal to search for
- Returns:
- the server entry for the principal or null if non-existent
- Throws:
java.lang.Exception
- if there are problems while searching the directory
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.