|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.kerberos.shared.store.JndiPrincipalStoreImpl
public class JndiPrincipalStoreImpl
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.
| Constructor Summary | |
|---|---|
JndiPrincipalStoreImpl(org.apache.directory.server.protocol.shared.ServiceConfiguration config,
javax.naming.spi.InitialContextFactory factory)
Creates a new instance of JndiPrincipalStoreImpl. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JndiPrincipalStoreImpl(org.apache.directory.server.protocol.shared.ServiceConfiguration config,
javax.naming.spi.InitialContextFactory factory)
config - factory - | Method Detail |
|---|
public java.lang.String addPrincipal(PrincipalStoreEntry entry)
throws java.lang.Exception
PrincipalStore
addPrincipal in interface PrincipalStorejava.lang.Exception
public java.lang.String deletePrincipal(javax.security.auth.kerberos.KerberosPrincipal principal)
throws java.lang.Exception
PrincipalStore
deletePrincipal in interface PrincipalStorejava.lang.Exception
public PrincipalStoreEntry[] getAllPrincipals(java.lang.String realm)
throws java.lang.Exception
PrincipalStore
getAllPrincipals in interface PrincipalStorePrincipalStoreEntry's.
java.lang.Exception
public PrincipalStoreEntry getPrincipal(javax.security.auth.kerberos.KerberosPrincipal principal)
throws java.lang.Exception
PrincipalStorePrincipalStoreEntry given a Kerberos principal.
getPrincipal in interface PrincipalStorePrincipalStoreEntry for the given Kerberos principal.
java.lang.Exception
public java.lang.String changePassword(javax.security.auth.kerberos.KerberosPrincipal principal,
java.lang.String newPassword)
throws java.lang.Exception
PrincipalStore
changePassword in interface PrincipalStorejava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||