|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CrowdUserDetailsService
Interface for retrieving users from Crowd.
Method Summary | |
---|---|
java.lang.String |
getAuthorityPrefix()
Return the authority prefix applied to group names the principal is a member of when generating the GrantedAuthority[]. |
java.lang.String |
getAuthoritySuffix()
Return the authority suffix, e.g. |
CrowdUserDetails |
loadUserByToken(java.lang.String token)
Retrieve a user from Crowd by looking up the principal by their authenticated Crowd token. |
CrowdUserDetails |
loadUserByUsername(java.lang.String username)
Retrieves the user from Crowd by looking up the principal by username. |
void |
setAuthorityPrefix(java.lang.String authorityPrefix)
Set the authority prefix applied to group names the principal is a member of when generating the GrantedAuthority[]. |
void |
setAuthoritySuffix(java.lang.String authoritySuffix)
Set the authority suffix e.g. |
Method Detail |
---|
CrowdUserDetails loadUserByUsername(java.lang.String username) throws org.springframework.security.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
loadUserByUsername
in interface org.springframework.security.userdetails.UserDetailsService
username
- username of the principal.
org.springframework.security.userdetails.UsernameNotFoundException
- thrown if a principal with the requested username cannot be found in Crowd.
org.springframework.dao.DataAccessException
- thrown if there was an underlying problem while communicating with the Crowd server.CrowdUserDetails loadUserByToken(java.lang.String token) throws CrowdSSOTokenInvalidException, org.springframework.dao.DataAccessException
token
- Crowd SSO token string.
com.atlassian.crowd.integration.springframework.security.CrowdSSOTokenInvalidException
- if the provided token is invalid.
org.springframework.dao.DataAccessException
- thrown if there was an underlying problem while communicating with the Crowd server.
CrowdSSOTokenInvalidException
java.lang.String getAuthorityPrefix()
void setAuthorityPrefix(java.lang.String authorityPrefix)
authorityPrefix
- prefix to apply. The default
is no prefix.java.lang.String getAuthoritySuffix()
void setAuthoritySuffix(java.lang.String authoritySuffix)
authoritySuffix
- suffix to apply.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |