|
||||||||||
| 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| Constructor Summary | |
|---|---|
LdapUserSecurityHandler()
Default constructor. |
|
LdapUserSecurityHandler(LdapPrincipalDao ldap)
|
|
| Method Summary | |
|---|---|
void |
addUserPrincipal(UserPrincipal userPrincipal)
Adds a new user principal in the backing store. |
java.security.Principal |
getUserPrincipal(java.lang.String uid)
Gets the user principal for the given user name. |
java.util.List |
getUserPrincipals(java.lang.String filter)
Gets the an iterator of user principals for a given filter. |
boolean |
isUserPrincipal(java.lang.String uid)
Lookup the user by his UID attribute on the Ldap Server. |
void |
removeUserPrincipal(UserPrincipal userPrincipal)
Removes the user principal. |
void |
updateUserPrincipal(UserPrincipal userPrincipal)
Updates the user principal in the backing store. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LdapUserSecurityHandler(LdapPrincipalDao ldap)
ldap - The LdapPrincipalDao.
public LdapUserSecurityHandler()
throws javax.naming.NamingException,
SecurityException
Default constructor.
javax.naming.NamingException
SecurityException| Method Detail |
|---|
public boolean isUserPrincipal(java.lang.String uid)
Lookup the user by his UID attribute on the Ldap Server.
isUserPrincipal in interface UserSecurityHandlerUserSecurityHandler.isUserPrincipal(java.lang.String)public java.security.Principal getUserPrincipal(java.lang.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)public java.util.List getUserPrincipals(java.lang.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(UserPrincipal userPrincipal)
throws SecurityException
UserSecurityHandlerAdds a new user principal in the backing store.
addUserPrincipal in interface UserSecurityHandleruserPrincipal - The new UserPrincipal.
SecurityException - Throws a SecurityException.UserSecurityHandler.addUserPrincipal(org.apache.jetspeed.security.UserPrincipal)
public void updateUserPrincipal(UserPrincipal userPrincipal)
throws SecurityException
UserSecurityHandlerUpdates the user principal in the backing store.
updateUserPrincipal in interface UserSecurityHandleruserPrincipal - The UserPrincipal.
SecurityException - Throws a SecurityException.UserSecurityHandler.updateUserPrincipal(org.apache.jetspeed.security.UserPrincipal)
public void removeUserPrincipal(UserPrincipal userPrincipal)
throws SecurityException
UserSecurityHandlerRemoves the user principal.
removeUserPrincipal in interface UserSecurityHandleruserPrincipal - The UserPrincipal.
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 | |||||||||