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 PrincipalStoresearchBaseDn
- The Search Base DNpublic void changePassword(KerberosPrincipal byPrincipal, KerberosPrincipal forPrincipal, String newPassword, boolean isInitialTicket) throws ChangePasswordException
changePassword
in interface PrincipalStore
byPrincipal
- 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 ticketChangePasswordException
- If the password change failedpublic PrincipalStoreEntry getPrincipal(KerberosPrincipal principal) throws Exception
PrincipalStoreEntry
given a Kerberos principal.getPrincipal
in interface PrincipalStore
PrincipalStoreEntry
for the given Kerberos principal.Exception
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.