public final class CasUserDetailsService
extends org.springframework.security.cas.userdetails.AbstractCasAssertionUserDetailsService
GrantedAuthority
s for a user by reading a list of attributes that were returned as
part of the CAS response. Each attribute is read and each value of the attribute is turned into a GrantedAuthority. If the attribute has no
value then its not added.Modifier and Type | Field and Description |
---|---|
static String |
NON_EXISTENT_PASSWORD_VALUE |
Constructor and Description |
---|
CasUserDetailsService() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAttributes()
Get the attribute names used to extract granted authorities.
|
List<String> |
getDefaultAuthorities()
Get default authorities to add to the user in any case.
|
boolean |
isConvertToUpperCase()
Converts the returned attribute values to uppercase values.
|
protected org.springframework.security.core.userdetails.UserDetails |
loadUserDetails(org.jasig.cas.client.validation.Assertion assertion) |
void |
setAttributes(List<String> attributes)
Set the attribute names used to extract granted authorities.
|
void |
setConvertToUpperCase(boolean convertToUpperCase)
Converts the returned attribute values to uppercase values.
|
void |
setDefaultAuthorities(List<String> defaultAuthorities)
Set default authorities to add to the user in any case.
|
public static final String NON_EXISTENT_PASSWORD_VALUE
protected org.springframework.security.core.userdetails.UserDetails loadUserDetails(org.jasig.cas.client.validation.Assertion assertion)
loadUserDetails
in class org.springframework.security.cas.userdetails.AbstractCasAssertionUserDetailsService
public List<String> getAttributes()
public void setAttributes(List<String> attributes)
attributes
- the attributes to setpublic boolean isConvertToUpperCase()
public void setConvertToUpperCase(boolean convertToUpperCase)
convertToUpperCase
- true if it should convert, false otherwise.public List<String> getDefaultAuthorities()
Copyright © 2016–2023. All rights reserved.