|
||||||||||
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 UserSecurityHandler
UserSecurityHandler.isUserPrincipal(java.lang.String)
public java.security.Principal getUserPrincipal(java.lang.String uid)
UserSecurityHandler
Gets the user principal for the given user name.
getUserPrincipal
in interface UserSecurityHandler
uid
- The user name.
Principal- See Also:
UserSecurityHandler.getUserPrincipal(java.lang.String)
public java.util.List getUserPrincipals(java.lang.String filter)
UserSecurityHandler
Gets the an iterator of user principals for a given filter.
getUserPrincipals
in interface UserSecurityHandler
filter
- The filter.
Principal
UserSecurityHandler.getUserPrincipals(java.lang.String)
public void addUserPrincipal(UserPrincipal userPrincipal) throws SecurityException
UserSecurityHandler
Adds a new user principal in the backing store.
addUserPrincipal
in interface UserSecurityHandler
userPrincipal
- The new UserPrincipal
.
SecurityException
- Throws a SecurityException
.UserSecurityHandler.addUserPrincipal(org.apache.jetspeed.security.UserPrincipal)
public void updateUserPrincipal(UserPrincipal userPrincipal) throws SecurityException
UserSecurityHandler
Updates the user principal in the backing store.
updateUserPrincipal
in interface UserSecurityHandler
userPrincipal
- The UserPrincipal
.
SecurityException
- Throws a SecurityException
.UserSecurityHandler.updateUserPrincipal(org.apache.jetspeed.security.UserPrincipal)
public void removeUserPrincipal(UserPrincipal userPrincipal) throws SecurityException
UserSecurityHandler
Removes the user principal.
removeUserPrincipal
in interface UserSecurityHandler
userPrincipal
- 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 |