|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jguard.authentication.XmlAuthenticationManager
| Constructor Summary | |
XmlAuthenticationManager()
|
|
| Method Summary | |
void |
addRoleToUser(javax.security.auth.Subject user,
java.lang.String roleName)
add role to user. |
boolean |
authenticateUser(java.lang.String username,
java.lang.String password)
|
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 options)
initialise the DAO by reading the XML file, and converting it in objects. |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XmlAuthenticationManager()
| Method Detail |
public void createUser(javax.security.auth.Subject user)
throws AuthenticationException
AuthenticationManager
createUser in interface AuthenticationManageruser -
AuthenticationException
public void addRoleToUser(javax.security.auth.Subject user,
java.lang.String roleName)
throws AuthenticationException
AuthenticationManager
addRoleToUser in interface AuthenticationManageruser - roleName -
AuthenticationException
public void createRole(JGuardPrincipal role)
throws AuthenticationException
AuthenticationManager
createRole in interface AuthenticationManagerrole -
AuthenticationException
public JGuardPrincipal getRole(java.lang.String name)
throws AuthenticationException
AuthenticationManager
getRole in interface AuthenticationManagername -
AuthenticationException
public java.util.List getRoles()
throws AuthenticationException
getRoles in interface AuthenticationManagerAuthenticationException
public javax.security.auth.Subject getUser(java.lang.String userName)
throws AuthenticationException
AuthenticationManager
getUser in interface AuthenticationManageruserName -
AuthenticationException
public boolean authenticateUser(java.lang.String username,
java.lang.String password)
throws AuthenticationException
AuthenticationException
public java.util.Set retrieveUserRoles(long Id)
throws AuthenticationException
retrieveUserRoles in interface AuthenticationManagerId -
AuthenticationException
public boolean userAlreadyExists(javax.security.auth.Subject user)
throws AuthenticationException
AuthenticationManager
userAlreadyExists in interface AuthenticationManageruser -
AuthenticationException
public boolean register(javax.security.auth.Subject user)
throws AuthenticationException
AuthenticationManager
register in interface AuthenticationManageruser -
AuthenticationException
public void initAuthenticationDAO(java.util.Map options)
throws AuthenticationException
initAuthenticationDAO in interface AuthenticationManagerAuthenticationExceptionAuthenticationManager.initAuthenticationDAO(java.util.Map)
public boolean roleAlreadyExists(JGuardPrincipal adminRole)
throws AuthenticationException
roleAlreadyExists in interface AuthenticationManageradminRole -
AuthenticationException
public void updateUser(javax.security.auth.Subject userinterface)
throws AuthenticationException
AuthenticationManager
updateUser in interface AuthenticationManageruserinterface -
AuthenticationException
public void removeUser(javax.security.auth.Subject userinterface)
throws AuthenticationException
AuthenticationManager
removeUser in interface AuthenticationManageruserinterface -
AuthenticationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||