public class DirectoryPrincipalStore extends Object implements PrincipalStore
| 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(KerberosPrincipal byPrincipal,
KerberosPrincipal forPrincipal,
String newPassword,
boolean isInitialTicket)
Change a principal's password.
|
PrincipalStoreEntry |
getPrincipal(KerberosPrincipal principal)
Get a
PrincipalStoreEntry given a Kerberos principal. |
public DirectoryPrincipalStore(DirectoryService directoryService, org.apache.directory.api.ldap.model.name.Dn searchBaseDn)
directoryService - backing store for this PrincipalStorepublic void changePassword(KerberosPrincipal byPrincipal, KerberosPrincipal forPrincipal, 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(KerberosPrincipal principal) throws Exception
PrincipalStoreEntry given a Kerberos principal.getPrincipal in interface PrincipalStorePrincipalStoreEntry for the given Kerberos principal.ExceptionCopyright © 2021. All rights reserved.