Interface LocalKadmin

All Superinterfaces:
Kadmin
All Known Implementing Classes:
LocalKadminImpl

public interface LocalKadmin extends Kadmin
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 Details

    • checkBuiltinPrincipals

      void checkBuiltinPrincipals() throws org.apache.kerby.kerberos.kerb.KrbException
      Check 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.KrbException
      Create build-in principals.
      Throws:
      org.apache.kerby.kerberos.kerb.KrbException - e
    • deleteBuiltinPrincipals

      void deleteBuiltinPrincipals() throws org.apache.kerby.kerberos.kerb.KrbException
      Delete 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