|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.integration.springsecurity.user.CrowdUserDetailsServiceImpl
public class CrowdUserDetailsServiceImpl
Retrieves users from Crowd using Crowd's remote API.
Constructor Summary | |
---|---|
CrowdUserDetailsServiceImpl()
|
Method Summary | |
---|---|
String |
getAuthorityPrefix()
Return the authority prefix applied to group names the principal is a member of when generating the GrantedAuthority[]. |
String |
getAuthoritySuffix()
Return the authority suffix, e.g. |
CrowdUserDetails |
loadUserByToken(String token)
Retrieve a user from Crowd by looking up the principal by their authenticated Crowd token. |
CrowdUserDetails |
loadUserByUsername(String username)
Retrieves the user from Crowd by looking up the principal by username. |
void |
setAuthenticationManager(AuthenticationManager authenticationManager)
|
void |
setAuthorityPrefix(String authorityPrefix)
Set the authority prefix applied to group names the principal is a member of when generating the GrantedAuthority[]. |
void |
setAuthoritySuffix(String authoritySuffix)
Set the authority suffix e.g. |
void |
setGroupMembershipManager(GroupMembershipManager groupMembershipManager)
|
void |
setUserManager(UserManager userManager)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CrowdUserDetailsServiceImpl()
Method Detail |
---|
public CrowdUserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
CrowdUserDetailsService
loadUserByUsername
in interface CrowdUserDetailsService
loadUserByUsername
in interface org.springframework.security.core.userdetails.UserDetailsService
username
- username of the principal.
org.springframework.dao.DataAccessException
- thrown if there was an underlying problem while communicating with the Crowd server.
org.springframework.security.core.userdetails.UsernameNotFoundException
public CrowdUserDetails loadUserByToken(String token) throws CrowdSSOTokenInvalidException, org.springframework.dao.DataAccessException
CrowdUserDetailsService
loadUserByToken
in interface CrowdUserDetailsService
token
- Crowd SSO token string.
org.springframework.dao.DataAccessException
- thrown if there was an underlying problem while communicating with the Crowd server.
CrowdSSOTokenInvalidException
public String getAuthorityPrefix()
CrowdUserDetailsService
getAuthorityPrefix
in interface CrowdUserDetailsService
public void setAuthorityPrefix(String authorityPrefix)
CrowdUserDetailsService
setAuthorityPrefix
in interface CrowdUserDetailsService
authorityPrefix
- prefix to apply. The default
is no prefix.public String getAuthoritySuffix()
CrowdUserDetailsService
getAuthoritySuffix
in interface CrowdUserDetailsService
public void setAuthoritySuffix(String authoritySuffix)
CrowdUserDetailsService
setAuthoritySuffix
in interface CrowdUserDetailsService
authoritySuffix
- suffix to apply.public void setUserManager(UserManager userManager)
public void setGroupMembershipManager(GroupMembershipManager groupMembershipManager)
public void setAuthenticationManager(AuthenticationManager authenticationManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |