|
|||||||||||
| 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
UserSecurityHandler| Field Summary | |
private LdapPrincipalDao |
ldap
The LdapPrincipalDao. |
private static org.apache.commons.logging.Log |
LOG
The logger. |
| Constructor Summary | |
LdapUserSecurityHandler()
Default constructor. |
|
LdapUserSecurityHandler(LdapPrincipalDao ldap)
|
|
| Method Summary | |
void |
addUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal)
Adds a new user principal in the backing store. |
Principal |
getUserPrincipal(String uid)
Gets the user principal for the given user name. |
List |
getUserPrincipals(String filter)
Gets the an iterator of user principals for a given 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)
Removes the user principal. |
void |
updateUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal)
Updates the user principal in the backing store. |
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 LOG
private LdapPrincipalDao ldap
LdapPrincipalDao.
| Constructor Detail |
public LdapUserSecurityHandler(LdapPrincipalDao ldap)
ldap - The LdapPrincipalDao.
public LdapUserSecurityHandler()
throws NamingException,
org.apache.jetspeed.security.SecurityException
Default constructor.
| Method Detail |
public boolean isUserPrincipal(String uid)
Lookup the user by his UID attribute on the Ldap Server.
isUserPrincipal in interface UserSecurityHandleruid -
UserSecurityHandler.isUserPrincipal(java.lang.String)public Principal getUserPrincipal(String uid)
UserSecurityHandlerGets the user principal for the given user name.
getUserPrincipal in interface UserSecurityHandleruid - The user name.
Principal- See Also:
UserSecurityHandler.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)
UserSecurityHandlerGets the an iterator of user principals for a given filter.
getUserPrincipals in interface UserSecurityHandlerfilter - The filter.
PrincipalUserSecurityHandler.getUserPrincipals(java.lang.String)
public void addUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal)
throws org.apache.jetspeed.security.SecurityException
UserSecurityHandlerAdds a new user principal in the backing store.
addUserPrincipal in interface UserSecurityHandleruserPrincipal - The new UserPrincipal.
org.apache.jetspeed.security.SecurityException - Throws a SecurityException.UserSecurityHandler.addUserPrincipal(org.apache.jetspeed.security.UserPrincipal)
public void updateUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal)
throws org.apache.jetspeed.security.SecurityException
UserSecurityHandlerUpdates the user principal in the backing store.
updateUserPrincipal in interface UserSecurityHandleruserPrincipal - The UserPrincipal.
org.apache.jetspeed.security.SecurityException - Throws a SecurityException.UserSecurityHandler.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
UserSecurityHandlerRemoves the user principal.
removeUserPrincipal in interface UserSecurityHandleruserPrincipal - The UserPrincipal.
org.apache.jetspeed.security.SecurityException - Throws a SecurityException.UserSecurityHandler.removeUserPrincipal(org.apache.jetspeed.security.UserPrincipal)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||