|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.security.cas.userdetails.AbstractCasAssertionUserDetailsService
org.jenkinsci.plugins.cas.spring.security.CasUserDetailsService
public final class CasUserDetailsService
Populates the GrantedAuthoritys 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.
| Constructor Summary | |
|---|---|
CasUserDetailsService()
|
|
| Method Summary | |
|---|---|
String[] |
getAttributes()
Get the attribute names used to extract granted authorities. |
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(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(String[] defaultAuthorities)
Set default authorities to add to the user in any case. |
| Methods inherited from class org.springframework.security.cas.userdetails.AbstractCasAssertionUserDetailsService |
|---|
loadUserDetails |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CasUserDetailsService()
| Method Detail |
|---|
protected org.springframework.security.core.userdetails.UserDetails loadUserDetails(org.jasig.cas.client.validation.Assertion assertion)
loadUserDetails in class org.springframework.security.cas.userdetails.AbstractCasAssertionUserDetailsServicepublic String[] getAttributes()
public void setAttributes(String[] attributes)
attributes - the attributes to setpublic boolean isConvertToUpperCase()
public void setConvertToUpperCase(boolean convertToUpperCase)
convertToUpperCase - true if it should convert, false otherwise.public String[] getDefaultAuthorities()
public void setDefaultAuthorities(String[] defaultAuthorities)
defaultAuthorities - default authorities
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||