public class DirectoryPrincipalStore extends java.lang.Object implements PrincipalStore
| Modifier and Type | Field and Description |
|---|---|
private CoreSession |
adminSession |
private DirectoryService |
directoryService
The directory service backing store for this PrincipalStore.
|
private org.apache.directory.api.ldap.model.name.Dn |
searchBaseDn |
| Constructor and Description |
|---|
DirectoryPrincipalStore(DirectoryService directoryService,
org.apache.directory.api.ldap.model.name.Dn searchBaseDn)
Creates a new instance of DirectoryPrincipalStore.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changePassword(javax.security.auth.kerberos.KerberosPrincipal byPrincipal,
javax.security.auth.kerberos.KerberosPrincipal forPrincipal,
java.lang.String newPassword,
boolean isInitialTicket)
Change a principal's password.
|
PrincipalStoreEntry |
getPrincipal(javax.security.auth.kerberos.KerberosPrincipal principal)
Get a
PrincipalStoreEntry given a Kerberos principal. |
private final DirectoryService directoryService
private final org.apache.directory.api.ldap.model.name.Dn searchBaseDn
private CoreSession adminSession
public DirectoryPrincipalStore(DirectoryService directoryService, org.apache.directory.api.ldap.model.name.Dn searchBaseDn)
directoryService - backing store for this PrincipalStorepublic void changePassword(javax.security.auth.kerberos.KerberosPrincipal byPrincipal,
javax.security.auth.kerberos.KerberosPrincipal forPrincipal,
java.lang.String newPassword,
boolean isInitialTicket)
throws ChangePasswordException
changePassword in interface PrincipalStorebyPrincipal - the principal which is changing the password for the forPrincipalforPrincipal - the principal whose password is being set or changednewPassword - the new passwordisInitialTicket - tells if the ticket is a freshly obtained ticketChangePasswordExceptionpublic PrincipalStoreEntry getPrincipal(javax.security.auth.kerberos.KerberosPrincipal principal) throws java.lang.Exception
PrincipalStoreEntry given a Kerberos principal.getPrincipal in interface PrincipalStorePrincipalStoreEntry for the given Kerberos principal.java.lang.Exception