Class RemoteKadminImpl
java.lang.Object
org.apache.kerby.kerberos.kerb.admin.kadmin.remote.RemoteKadminImpl
- All Implemented Interfaces:
Kadmin
Server side admin facilities from remote, similar to MIT Kadmin remote mode.
It uses GSSAPI and XDR to communicate with remote KDC/kadmind to do the
requested operations. In the client side, it simply wraps and sends the
request info to the admin kadmind side, and then unwraps the response for
the operation result.
TO BE IMPLEMENTED.
-
Constructor Summary
Constructors -
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.org.apache.kerby.kerberos.kerb.request.KrbIdentitygetPrincipal(String principalName) 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.
-
Constructor Details
-
RemoteKadminImpl
public RemoteKadminImpl(InternalAdminClient innerClient, Subject subject) throws org.apache.kerby.kerberos.kerb.KrbException - Throws:
org.apache.kerby.kerberos.kerb.KrbException
-
-
Method Details
-
getInnerClient
-
getKadminPrincipal
Description copied from interface:KadminGet the kadmin principal name.- Specified by:
getKadminPrincipalin interfaceKadmin- Returns:
- The kadmin principal name.
-
addPrincipal
Description copied from interface:KadminAdd principal to backend.- Specified by:
addPrincipalin interfaceKadmin- Parameters:
principal- The principal to be added into backend- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
addPrincipal
public void addPrincipal(String principal, org.apache.kerby.KOptions kOptions) throws org.apache.kerby.kerberos.kerb.KrbException Description copied from interface:KadminAdd principal to backend.- Specified by:
addPrincipalin interfaceKadmin- Parameters:
principal- The principal to be added into backendkOptions- The KOptions with principal info- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
addPrincipal
public void addPrincipal(String principal, String password) throws org.apache.kerby.kerberos.kerb.KrbException Description copied from interface:KadminAdd principal to backend.- Specified by:
addPrincipalin interfaceKadmin- Parameters:
principal- The principal to be added into backendpassword- The password to create encryption key- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
addPrincipal
public void addPrincipal(String principal, String password, org.apache.kerby.KOptions kOptions) throws org.apache.kerby.kerberos.kerb.KrbException Description copied from interface:KadminAdd principal to backend.- Specified by:
addPrincipalin interfaceKadmin- 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
public void exportKeytab(File keytabFile, String principal) throws org.apache.kerby.kerberos.kerb.KrbException Description copied from interface:KadminExport all the keys of the specified principal into the specified keytab file.- Specified by:
exportKeytabin interfaceKadmin- Parameters:
keytabFile- The keytab fileprincipal- The principal name- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
exportKeytab
public void exportKeytab(File keytabFile, List<String> principals) throws org.apache.kerby.kerberos.kerb.KrbException Description copied from interface:KadminExport all the keys of the specified principals into the specified keytab file.- Specified by:
exportKeytabin interfaceKadmin- Parameters:
keytabFile- The keytab fileprincipals- The principal names- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
exportKeytab
Description copied from interface:KadminExport all identity keys to the specified keytab file.- Specified by:
exportKeytabin interfaceKadmin- Parameters:
keytabFile- The keytab file- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
removeKeytabEntriesOf
public void removeKeytabEntriesOf(File keytabFile, String principal) throws org.apache.kerby.kerberos.kerb.KrbException Description copied from interface:KadminRemove all the keys of the specified principal in the specified keytab file.- Specified by:
removeKeytabEntriesOfin interfaceKadmin- Parameters:
keytabFile- The keytab fileprincipal- The principal name- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
removeKeytabEntriesOf
public void removeKeytabEntriesOf(File keytabFile, String principal, int kvno) throws org.apache.kerby.kerberos.kerb.KrbException Description copied from interface:KadminRemove all the keys of the specified principal with specified kvno in the specified keytab file.- Specified by:
removeKeytabEntriesOfin interfaceKadmin- Parameters:
keytabFile- The keytab fileprincipal- The principal namekvno- The kvno- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
removeOldKeytabEntriesOf
public void removeOldKeytabEntriesOf(File keytabFile, String principal) throws org.apache.kerby.kerberos.kerb.KrbException Description copied from interface:KadminRemove all the old keys of the specified principal in the specified keytab file.- Specified by:
removeOldKeytabEntriesOfin interfaceKadmin- Parameters:
keytabFile- The keytab fileprincipal- The principal name- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
deletePrincipal
Description copied from interface:KadminDelete the principal in backend.- Specified by:
deletePrincipalin interfaceKadmin- Parameters:
principal- The principal to be deleted from backend- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
modifyPrincipal
public void modifyPrincipal(String principal, org.apache.kerby.KOptions kOptions) throws org.apache.kerby.kerberos.kerb.KrbException Description copied from interface:KadminModify the principal with KOptions.- Specified by:
modifyPrincipalin interfaceKadmin- Parameters:
principal- The principal to be modifiedkOptions- The KOptions with changed principal info- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
renamePrincipal
public void renamePrincipal(String oldPrincipalName, String newPrincipalName) throws org.apache.kerby.kerberos.kerb.KrbException Description copied from interface:KadminRename the principal.- Specified by:
renamePrincipalin interfaceKadmin- Parameters:
oldPrincipalName- The original principal namenewPrincipalName- The new principal name- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
getPrincipals
Description copied from interface:KadminGet all the principal names from backend.- Specified by:
getPrincipalsin interfaceKadmin- Returns:
- principal list
- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
getPrincipals
public List<String> getPrincipals(String globString) throws org.apache.kerby.kerberos.kerb.KrbException Description copied from interface:KadminGet all the principal names that meets the pattern- Specified by:
getPrincipalsin interfaceKadmin- Parameters:
globString- The glob string for matching- Returns:
- Principal names
- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
changePassword
public void changePassword(String principal, String newPassword) throws org.apache.kerby.kerberos.kerb.KrbException Description copied from interface:KadminChange the password of specified principal.- Specified by:
changePasswordin interfaceKadmin- Parameters:
principal- The principal to be updated passwordnewPassword- The new password- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
updateKeys
Description copied from interface:KadminUpdate the random keys of specified principal.- Specified by:
updateKeysin interfaceKadmin- Parameters:
principal- The principal to be updated keys- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
release
public void release() throws org.apache.kerby.kerberos.kerb.KrbExceptionDescription copied from interface:KadminRelease any resources associated. -
getPrincipal
public org.apache.kerby.kerberos.kerb.request.KrbIdentity getPrincipal(String principalName) throws org.apache.kerby.kerberos.kerb.KrbException - Throws:
org.apache.kerby.kerberos.kerb.KrbException
-