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 java.lang.Object
implements PrincipalStore

A PrincipalStore backing entries in a DirectoryService.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Constructor Summary
DirectoryPrincipalStore(DirectoryService directoryService, org.apache.directory.shared.ldap.name.DN searchBaseDn)
          Creates a new instance of DirectoryPrincipalStore.
 
Method Summary
 java.lang.String changePassword(javax.security.auth.kerberos.KerberosPrincipal principal, java.lang.String newPassword)
          Change a principal's password.
 PrincipalStoreEntry getPrincipal(javax.security.auth.kerberos.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(DirectoryService directoryService,
                               org.apache.directory.shared.ldap.name.DN searchBaseDn)
Creates a new instance of DirectoryPrincipalStore.

Parameters:
directoryService - backing store for this PrincipalStore
Method Detail

changePassword

public java.lang.String changePassword(javax.security.auth.kerberos.KerberosPrincipal principal,
                                       java.lang.String newPassword)
                                throws java.lang.Exception
Description copied from interface: PrincipalStore
Change a principal's password.

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

getPrincipal

public PrincipalStoreEntry getPrincipal(javax.security.auth.kerberos.KerberosPrincipal principal)
                                 throws java.lang.Exception
Description copied from interface: PrincipalStore
Get a PrincipalStoreEntry given a Kerberos principal.

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


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