public interface PrincipalStore
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. |
void changePassword(KerberosPrincipal byPrincipal, KerberosPrincipal forPrincipal, String newPassword, boolean isInitialTicket) throws ChangePasswordException
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 failedPrincipalStoreEntry getPrincipal(KerberosPrincipal principal) throws Exception
PrincipalStoreEntry
given a Kerberos principal.principal
- PrincipalStoreEntry
for the given Kerberos principal.Exception
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.