Interface Kadmin
- All Known Subinterfaces:
LocalKadmin
- All Known Implementing Classes:
LocalKadminImpl,RemoteKadminImpl
public interface Kadmin
Server side admin facilities from remote, similar to MIT kadmin remote mode.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddPrincipal(String principal) Add principal to backend.voidaddPrincipal(String principal, String password) Add principal to backend.voidaddPrincipal(String principal, String password, org.apache.kerby.KOptions kOptions) Add principal to backend.voidaddPrincipal(String principal, org.apache.kerby.KOptions kOptions) Add principal to backend.voidchangePassword(String principal, String newPassword) Change the password of specified principal.voiddeletePrincipal(String principal) Delete the principal in backend.voidexportKeytab(File keytabFile) Export all identity keys to the specified keytab file.voidexportKeytab(File keytabFile, String principal) Export all the keys of the specified principal into the specified keytab file.voidexportKeytab(File keytabFile, List<String> principals) Export all the keys of the specified principals into the specified keytab file.Get the kadmin principal name.Get all the principal names from backend.getPrincipals(String globString) Get all the principal names that meets the patternvoidmodifyPrincipal(String principal, org.apache.kerby.KOptions kOptions) Modify the principal with KOptions.voidrelease()Release any resources associated.voidremoveKeytabEntriesOf(File keytabFile, String principal) Remove all the keys of the specified principal in the specified keytab file.voidremoveKeytabEntriesOf(File keytabFile, String principal, int kvno) Remove all the keys of the specified principal with specified kvno in the specified keytab file.voidremoveOldKeytabEntriesOf(File keytabFile, String principal) Remove all the old keys of the specified principal in the specified keytab file.voidrenamePrincipal(String oldPrincipalName, String newPrincipalName) Rename the principal.voidupdateKeys(String principal) Update the random keys of specified principal.
-
Method Details
-
getKadminPrincipal
String getKadminPrincipal()Get the kadmin principal name.- Returns:
- The kadmin principal name.
-
addPrincipal
Add principal to backend.- Parameters:
principal- The principal to be added into backend- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
addPrincipal
void addPrincipal(String principal, org.apache.kerby.KOptions kOptions) throws org.apache.kerby.kerberos.kerb.KrbException Add principal to backend.- Parameters:
principal- The principal to be added into backendkOptions- The KOptions with principal info- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
addPrincipal
void addPrincipal(String principal, String password) throws org.apache.kerby.kerberos.kerb.KrbException Add principal to backend.- Parameters:
principal- The principal to be added into backendpassword- The password to create encryption key- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
addPrincipal
void addPrincipal(String principal, String password, org.apache.kerby.KOptions kOptions) throws org.apache.kerby.kerberos.kerb.KrbException Add principal to backend.- Parameters:
principal- The principal to be added into backendpassword- The password to create encryption keykOptions- The KOptions with principal info- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
exportKeytab
void exportKeytab(File keytabFile, String principal) throws org.apache.kerby.kerberos.kerb.KrbException Export all the keys of the specified principal into the specified keytab file.- Parameters:
keytabFile- The keytab fileprincipal- The principal name- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
exportKeytab
void exportKeytab(File keytabFile, List<String> principals) throws org.apache.kerby.kerberos.kerb.KrbException Export all the keys of the specified principals into the specified keytab file.- Parameters:
keytabFile- The keytab fileprincipals- The principal names- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
exportKeytab
Export all identity keys to the specified keytab file.- Parameters:
keytabFile- The keytab file- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
removeKeytabEntriesOf
void removeKeytabEntriesOf(File keytabFile, String principal) throws org.apache.kerby.kerberos.kerb.KrbException Remove all the keys of the specified principal in the specified keytab file.- Parameters:
keytabFile- The keytab fileprincipal- The principal name- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
removeKeytabEntriesOf
void removeKeytabEntriesOf(File keytabFile, String principal, int kvno) throws org.apache.kerby.kerberos.kerb.KrbException Remove all the keys of the specified principal with specified kvno in the specified keytab file.- Parameters:
keytabFile- The keytab fileprincipal- The principal namekvno- The kvno- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
removeOldKeytabEntriesOf
void removeOldKeytabEntriesOf(File keytabFile, String principal) throws org.apache.kerby.kerberos.kerb.KrbException Remove all the old keys of the specified principal in the specified keytab file.- Parameters:
keytabFile- The keytab fileprincipal- The principal name- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
deletePrincipal
Delete the principal in backend.- Parameters:
principal- The principal to be deleted from backend- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
modifyPrincipal
void modifyPrincipal(String principal, org.apache.kerby.KOptions kOptions) throws org.apache.kerby.kerberos.kerb.KrbException Modify the principal with KOptions.- Parameters:
principal- The principal to be modifiedkOptions- The KOptions with changed principal info- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
renamePrincipal
void renamePrincipal(String oldPrincipalName, String newPrincipalName) throws org.apache.kerby.kerberos.kerb.KrbException Rename the principal.- Parameters:
oldPrincipalName- The original principal namenewPrincipalName- The new principal name- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
getPrincipals
Get all the principal names from backend.- Returns:
- principal list
- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
getPrincipals
Get all the principal names that meets the pattern- Parameters:
globString- The glob string for matching- Returns:
- Principal names
- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
changePassword
void changePassword(String principal, String newPassword) throws org.apache.kerby.kerberos.kerb.KrbException Change the password of specified principal.- Parameters:
principal- The principal to be updated passwordnewPassword- The new password- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
updateKeys
Update the random keys of specified principal.- Parameters:
principal- The principal to be updated keys- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
release
void release() throws org.apache.kerby.kerberos.kerb.KrbExceptionRelease any resources associated.- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-