|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jetspeed.security.spi.impl.LdapUserSecurityHandler
public class LdapUserSecurityHandler
UserSecurityHandler| Field Summary | |
|---|---|
private LdapPrincipalDao |
ldap
The LdapPrincipalDao. |
private static org.apache.commons.logging.Log |
logger
The logger. |
| Constructor Summary | |
|---|---|
LdapUserSecurityHandler()
Default constructor. |
|
LdapUserSecurityHandler(LdapPrincipalDao ldap)
|
|
| Method Summary | |
|---|---|
void |
addUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal)
|
Principal |
getUserPrincipal(String uid)
|
List |
getUserPrincipals(String filter)
|
boolean |
isUserPrincipal(String uid)
Lookup the user by his UID attribute on the Ldap Server. |
private void |
logSecurityException(org.apache.jetspeed.security.SecurityException se,
String uid)
|
void |
removeUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal)
|
void |
updateUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal)
|
private void |
verifyUid(String uid)
Verify the uid. |
private void |
verifyUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final org.apache.commons.logging.Log logger
private LdapPrincipalDao ldap
LdapPrincipalDao.
| Constructor Detail |
|---|
public LdapUserSecurityHandler(LdapPrincipalDao ldap)
ldap - The LdapPrincipalDao.
public LdapUserSecurityHandler()
throws NamingException,
org.apache.jetspeed.security.SecurityException
Default constructor.
NamingException
org.apache.jetspeed.security.SecurityException| Method Detail |
|---|
public boolean isUserPrincipal(String uid)
Lookup the user by his UID attribute on the Ldap Server.
isUserPrincipal in interface org.apache.jetspeed.security.spi.UserSecurityHandlerUserSecurityHandler.isUserPrincipal(java.lang.String)public Principal getUserPrincipal(String uid)
getUserPrincipal in interface org.apache.jetspeed.security.spi.UserSecurityHandlerUserSecurityHandler.getUserPrincipal(java.lang.String)private void verifyUid(String uid)
Verify the uid.
uid - The uid.
private void logSecurityException(org.apache.jetspeed.security.SecurityException se,
String uid)
se - SecurityException Throws a SecurityException.uid - The uid.public List getUserPrincipals(String filter)
getUserPrincipals in interface org.apache.jetspeed.security.spi.UserSecurityHandlerUserSecurityHandler.getUserPrincipals(java.lang.String)
public void addUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal)
throws org.apache.jetspeed.security.SecurityException
addUserPrincipal in interface org.apache.jetspeed.security.spi.UserSecurityHandlerorg.apache.jetspeed.security.SecurityExceptionUserSecurityHandler.addUserPrincipal(org.apache.jetspeed.security.UserPrincipal)
public void updateUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal)
throws org.apache.jetspeed.security.SecurityException
updateUserPrincipal in interface org.apache.jetspeed.security.spi.UserSecurityHandlerorg.apache.jetspeed.security.SecurityExceptionUserSecurityHandler.updateUserPrincipal(org.apache.jetspeed.security.UserPrincipal)private void verifyUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal)
userPrincipal -
public void removeUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal)
throws org.apache.jetspeed.security.SecurityException
removeUserPrincipal in interface org.apache.jetspeed.security.spi.UserSecurityHandlerorg.apache.jetspeed.security.SecurityExceptionUserSecurityHandler.removeUserPrincipal(org.apache.jetspeed.security.UserPrincipal)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||