|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
this interface provide the ability to operate on the system which stores user profiles. it can be a database, or an ldap server, or anything else.... it concerns administrators guys.
| Method Summary | |
void |
addRoleToUser(javax.security.auth.Subject user,
java.lang.String roleName)
add role to user. |
void |
createRole(JGuardPrincipal role)
add roles in the list to the persistance storage. |
void |
createUser(javax.security.auth.Subject user)
add user in the list to the persistance storage. |
JGuardPrincipal |
getRole(java.lang.String name)
retrieve role. |
java.util.List |
getRoles()
|
javax.security.auth.Subject |
getUser(java.lang.String userName)
retrieve user. |
void |
initAuthenticationDAO(java.util.Map map)
|
boolean |
register(javax.security.auth.Subject user)
register in datasource the user. |
void |
removeUser(javax.security.auth.Subject userinterface)
remove user. |
java.util.Set |
retrieveUserRoles(long Id)
|
boolean |
roleAlreadyExists(JGuardPrincipal adminRole)
|
void |
updateUser(javax.security.auth.Subject userinterface)
update user's informations. |
boolean |
userAlreadyExists(javax.security.auth.Subject user)
checks if a user with the same username already exists. |
| Method Detail |
public void createUser(javax.security.auth.Subject user)
throws AuthenticationException
user -
AuthenticationException
public void addRoleToUser(javax.security.auth.Subject user,
java.lang.String roleName)
throws AuthenticationException
user - roleName -
AuthenticationException
public void createRole(JGuardPrincipal role)
throws AuthenticationException
role -
AuthenticationException
public JGuardPrincipal getRole(java.lang.String name)
throws AuthenticationException
name -
AuthenticationException
public java.util.List getRoles()
throws AuthenticationException
AuthenticationException
public javax.security.auth.Subject getUser(java.lang.String userName)
throws AuthenticationException
userName -
AuthenticationException
public java.util.Set retrieveUserRoles(long Id)
throws AuthenticationException
Id -
AuthenticationException
public boolean userAlreadyExists(javax.security.auth.Subject user)
throws AuthenticationException
user -
AuthenticationException
public boolean register(javax.security.auth.Subject user)
throws AuthenticationException
user -
AuthenticationException
public void initAuthenticationDAO(java.util.Map map)
throws AuthenticationException
AuthenticationException
public boolean roleAlreadyExists(JGuardPrincipal adminRole)
throws AuthenticationException
adminRole -
AuthenticationException
public void updateUser(javax.security.auth.Subject userinterface)
throws AuthenticationException
userinterface -
AuthenticationException
public void removeUser(javax.security.auth.Subject userinterface)
throws AuthenticationException
userinterface -
AuthenticationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||