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

java.lang.Object
  extended by org.apache.directory.server.kerberos.shared.store.DirectoryPrincipalStore
All Implemented Interfaces:
PrincipalStore

public class DirectoryPrincipalStore
extends Object
implements PrincipalStore

A PrincipalStore backing entries in a DirectoryService.

Author:
Apache Directory Project

Constructor Summary
DirectoryPrincipalStore(org.apache.directory.server.core.api.DirectoryService directoryService, org.apache.directory.shared.ldap.model.name.Dn searchBaseDn)
          Creates a new instance of DirectoryPrincipalStore.
 
Method Summary
 String changePassword(KerberosPrincipal principal, String newPassword)
          Change a principal's password.
 PrincipalStoreEntry getPrincipal(KerberosPrincipal principal)
          Get a PrincipalStoreEntry given a Kerberos principal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryPrincipalStore

public DirectoryPrincipalStore(org.apache.directory.server.core.api.DirectoryService directoryService,
                               org.apache.directory.shared.ldap.model.name.Dn searchBaseDn)
Creates a new instance of DirectoryPrincipalStore.

Parameters:
directoryService - backing store for this PrincipalStore
Method Detail

changePassword

public String changePassword(KerberosPrincipal principal,
                             String newPassword)
                      throws Exception
Change a principal's password.

Specified by:
changePassword in interface PrincipalStore
Returns:
The name of the principal whose password is being changed.
Throws:
Exception

getPrincipal

public PrincipalStoreEntry getPrincipal(KerberosPrincipal principal)
                                 throws Exception
Get a PrincipalStoreEntry given a Kerberos principal.

Specified by:
getPrincipal in interface PrincipalStore
Returns:
The PrincipalStoreEntry for the given Kerberos principal.
Throws:
Exception


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.