org.apache.directory.server.kerberos.shared.store
Class JndiPrincipalStoreImpl
java.lang.Object
org.apache.directory.server.kerberos.shared.store.JndiPrincipalStoreImpl
- All Implemented Interfaces:
- PrincipalStore
- public class JndiPrincipalStoreImpl
- extends java.lang.Object
- implements PrincipalStore
A JNDI-backed implementation of the PrincipalStore interface. This PrincipalStore uses
the Strategy pattern to either serve principals based on a single base DN or to lookup
catalog mappings from configuration in the DIT. The strategy is chosen based on the
presence of a catalog base DN. If the catalog base DN is not present, the single
entry base DN is searched, instead.
- Version:
- $Rev: 434558 $, $Date: 2006-08-25 01:11:45 +0200 (Fri, 25 Aug 2006) $
- Author:
- Apache Directory Project
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JndiPrincipalStoreImpl
public JndiPrincipalStoreImpl(ServiceConfiguration config,
javax.naming.spi.InitialContextFactory factory)
addPrincipal
public java.lang.String addPrincipal(PrincipalStoreEntry entry)
throws java.lang.Exception
- Specified by:
addPrincipal
in interface PrincipalStore
- Throws:
java.lang.Exception
deletePrincipal
public java.lang.String deletePrincipal(javax.security.auth.kerberos.KerberosPrincipal principal)
throws java.lang.Exception
- Specified by:
deletePrincipal
in interface PrincipalStore
- Throws:
java.lang.Exception
getAllPrincipals
public PrincipalStoreEntry[] getAllPrincipals(java.lang.String realm)
throws java.lang.Exception
- Specified by:
getAllPrincipals
in interface PrincipalStore
- Throws:
java.lang.Exception
getPrincipal
public PrincipalStoreEntry getPrincipal(javax.security.auth.kerberos.KerberosPrincipal principal)
throws java.lang.Exception
- Specified by:
getPrincipal
in interface PrincipalStore
- Throws:
java.lang.Exception
changePassword
public java.lang.String changePassword(javax.security.auth.kerberos.KerberosPrincipal principal,
javax.security.auth.kerberos.KerberosKey newKey)
throws java.lang.Exception
- Specified by:
changePassword
in interface PrincipalStore
- Throws:
java.lang.Exception