org.apache.directory.server.kerberos.shared.store
Class JndiPrincipalStoreImpl

java.lang.Object
  extended by 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-24 19:11:45 -0400 (Thu, 24 Aug 2006) $
Author:
Apache Directory Project

Constructor Summary
JndiPrincipalStoreImpl(org.apache.directory.server.protocol.shared.ServiceConfiguration config, javax.naming.spi.InitialContextFactory factory)
           
 
Method Summary
 java.lang.String addPrincipal(PrincipalStoreEntry entry)
           
 java.lang.String changePassword(javax.security.auth.kerberos.KerberosPrincipal principal, javax.security.auth.kerberos.KerberosKey newKey)
           
 java.lang.String deletePrincipal(javax.security.auth.kerberos.KerberosPrincipal principal)
           
 PrincipalStoreEntry[] getAllPrincipals(java.lang.String realm)
           
 PrincipalStoreEntry getPrincipal(javax.security.auth.kerberos.KerberosPrincipal principal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JndiPrincipalStoreImpl

public JndiPrincipalStoreImpl(org.apache.directory.server.protocol.shared.ServiceConfiguration config,
                              javax.naming.spi.InitialContextFactory factory)
Method Detail

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


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.