Interface LocalKadmin
- All Superinterfaces:
Kadmin
- All Known Implementing Classes:
LocalKadminImpl
Server side admin facilities for local, similar to MIT kadmin local mode. It
may be not accurate regarding 'local' because, if the identity backend itself
is supported to be accessed from remote, it won't have to be remote; but if
not, then it must be local to the KDC admin bounded with the local backend.
Note, suitable with Kerby AdminServerImpl based KDCs like Kerby KDC.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCheck the built-in principals, will throw KrbException if not exist.voidCreate build-in principals.voidDelete build-in principals.org.apache.kerby.kerberos.kerb.identity.backend.BackendConfigGet backend config.org.apache.kerby.kerberos.kerb.identity.backend.IdentityBackendGet identity backend.org.apache.kerby.kerberos.kerb.server.KdcConfigGet kdc config.org.apache.kerby.kerberos.kerb.request.KrbIdentitygetPrincipal(String principalName) Get the identity from backend.intsize()Methods inherited from interface org.apache.kerby.kerberos.kerb.admin.kadmin.Kadmin
addPrincipal, addPrincipal, addPrincipal, addPrincipal, changePassword, deletePrincipal, exportKeytab, exportKeytab, exportKeytab, getKadminPrincipal, getPrincipals, getPrincipals, modifyPrincipal, release, removeKeytabEntriesOf, removeKeytabEntriesOf, removeOldKeytabEntriesOf, renamePrincipal, updateKeys
-
Method Details
-
checkBuiltinPrincipals
void checkBuiltinPrincipals() throws org.apache.kerby.kerberos.kerb.KrbExceptionCheck the built-in principals, will throw KrbException if not exist.- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
createBuiltinPrincipals
void createBuiltinPrincipals() throws org.apache.kerby.kerberos.kerb.KrbExceptionCreate build-in principals.- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
deleteBuiltinPrincipals
void deleteBuiltinPrincipals() throws org.apache.kerby.kerberos.kerb.KrbExceptionDelete build-in principals.- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
getKdcConfig
org.apache.kerby.kerberos.kerb.server.KdcConfig getKdcConfig()Get kdc config.- Returns:
- The kdc config.
-
getBackendConfig
org.apache.kerby.kerberos.kerb.identity.backend.BackendConfig getBackendConfig()Get backend config.- Returns:
- The backend config.
-
getIdentityBackend
org.apache.kerby.kerberos.kerb.identity.backend.IdentityBackend getIdentityBackend()Get identity backend.- Returns:
- IdentityBackend
-
getPrincipal
org.apache.kerby.kerberos.kerb.request.KrbIdentity getPrincipal(String principalName) throws org.apache.kerby.kerberos.kerb.KrbException Get the identity from backend.- Parameters:
principalName- The principal name- Returns:
- identity
- Throws:
org.apache.kerby.kerberos.kerb.KrbException- e
-
size
int size() throws org.apache.kerby.kerberos.kerb.KrbException- Throws:
org.apache.kerby.kerberos.kerb.KrbException
-