public final class StoreUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.apache.directory.api.ldap.model.entry.Entry |
findPrincipalEntry(CoreSession session,
org.apache.directory.api.ldap.model.name.Dn searchBaseDn,
String principal)
Finds the Entry associated with the Kerberos principal name.
|
static org.apache.directory.api.ldap.model.entry.Entry |
toServerEntry(CoreSession session,
org.apache.directory.api.ldap.model.name.Dn dn,
PrincipalStoreEntry principalEntry)
Creates a Entry for a PrincipalStoreEntry, doing what a state
factory does but for Entry instead of Attributes.
|
public static org.apache.directory.api.ldap.model.entry.Entry toServerEntry(CoreSession session, org.apache.directory.api.ldap.model.name.Dn dn, PrincipalStoreEntry principalEntry) throws Exception
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 EntryException - if there are problems accessing registriespublic static org.apache.directory.api.ldap.model.entry.Entry findPrincipalEntry(CoreSession session, org.apache.directory.api.ldap.model.name.Dn searchBaseDn, String principal) throws Exception
session - the session to use for the searchsearchBaseDn - the base to use while searchingprincipal - the name of the principal to search forException - if there are problems while searching the directoryCopyright © 2021. All rights reserved.