|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserSecurityHandler
This interface encapsulates the persistence of a user security.
This provides a central placeholder for changing the persistence of user security information.
A security implementation wanting to store user security implementation in LDAP for instance would need to provide an LDAP implementation of this interface.
Method Summary | |
---|---|
void |
addUserPrincipal(UserPrincipal userPrincipal)
Adds a new user principal in the backing store. |
java.security.Principal |
getUserPrincipal(java.lang.String username)
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 userName)
Checks if a UserPrincipal exists |
void |
removeUserPrincipal(UserPrincipal userPrincipal)
Removes the user principal. |
void |
updateUserPrincipal(UserPrincipal userPrincipal)
Updates the user principal in the backing store. |
Method Detail |
---|
boolean isUserPrincipal(java.lang.String userName)
Checks if a UserPrincipal exists
userName
-
java.security.Principal getUserPrincipal(java.lang.String username)
Gets the user principal for the given user name.
username
- The user name.
Principal
java.util.List getUserPrincipals(java.lang.String filter)
Gets the an iterator of user principals for a given filter.
filter
- The filter.
Principal
void addUserPrincipal(UserPrincipal userPrincipal) throws SecurityException
Adds a new user principal in the backing store.
userPrincipal
- The new UserPrincipal
.
SecurityException
- Throws a SecurityException
.void updateUserPrincipal(UserPrincipal userPrincipal) throws SecurityException
Updates the user principal in the backing store.
userPrincipal
- The UserPrincipal
.
SecurityException
- Throws a SecurityException
.void removeUserPrincipal(UserPrincipal userPrincipal) throws SecurityException
Removes the user principal.
userPrincipal
- The UserPrincipal
.
SecurityException
- Throws a SecurityException
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |