org.apache.directory.server.kerberos.shared.store
Interface PrincipalStore

All Known Implementing Classes:
DirectoryPrincipalStore

public interface PrincipalStore

The store interface used by Kerberos services.

Version:
$Rev:330489 $, $Date: 2007-05-22 02:00:43 +0200 (Di, 22 Mai 2007) $
Author:
Apache Directory Project

Method Summary
 java.lang.String addPrincipal(PrincipalStoreEntry entry)
          Add a principal.
 java.lang.String changePassword(javax.security.auth.kerberos.KerberosPrincipal principal, java.lang.String newPassword)
          Change a principal's password.
 java.lang.String deletePrincipal(javax.security.auth.kerberos.KerberosPrincipal principal)
          Delete a principal.
 PrincipalStoreEntry[] getAllPrincipals(java.lang.String realm)
          Get all principals for a given realm.
 PrincipalStoreEntry getPrincipal(javax.security.auth.kerberos.KerberosPrincipal principal)
          Get a PrincipalStoreEntry given a Kerberos principal.
 

Method Detail

addPrincipal

java.lang.String addPrincipal(PrincipalStoreEntry entry)
                              throws java.lang.Exception
Add a principal.

Parameters:
entry -
Returns:
The name of the principal being added.
Throws:
java.lang.Exception

changePassword

java.lang.String changePassword(javax.security.auth.kerberos.KerberosPrincipal principal,
                                java.lang.String newPassword)
                                throws java.lang.Exception
Change a principal's password.

Parameters:
principal -
newPassword -
Returns:
The name of the principal whose password is being changed.
Throws:
java.lang.Exception

deletePrincipal

java.lang.String deletePrincipal(javax.security.auth.kerberos.KerberosPrincipal principal)
                                 throws java.lang.Exception
Delete a principal.

Parameters:
principal -
Returns:
The name of the principal being deleted.
Throws:
java.lang.Exception

getAllPrincipals

PrincipalStoreEntry[] getAllPrincipals(java.lang.String realm)
                                       throws java.lang.Exception
Get all principals for a given realm.

Parameters:
realm -
Returns:
An array of PrincipalStoreEntry's.
Throws:
java.lang.Exception

getPrincipal

PrincipalStoreEntry getPrincipal(javax.security.auth.kerberos.KerberosPrincipal principal)
                                 throws java.lang.Exception
Get a PrincipalStoreEntry given a Kerberos principal.

Parameters:
principal -
Returns:
The PrincipalStoreEntry for the given Kerberos principal.
Throws:
java.lang.Exception


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