public final class

GrantedAuthorityFromAssertionAttributesUserDetailsService

extends AbstractCasAssertionUserDetailsService
java.lang.Object
   ↳ org.springframework.security.cas.userdetails.AbstractCasAssertionUserDetailsService
     ↳ org.springframework.security.cas.userdetails.GrantedAuthorityFromAssertionAttributesUserDetailsService

Class Overview

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.

Summary

Public Constructors
GrantedAuthorityFromAssertionAttributesUserDetailsService(String[] attributes)
Public Methods
void setConvertToUpperCase(boolean convertToUpperCase)
Converts the returned attribute values to uppercase values.
Protected Methods
UserDetails loadUserDetails(Assertion assertion)
Protected template method for construct a UserDetails via the supplied CAS assertion.
[Expand]
Inherited Methods
From class org.springframework.security.cas.userdetails.AbstractCasAssertionUserDetailsService
From class java.lang.Object
From interface org.springframework.security.core.userdetails.AuthenticationUserDetailsService

Public Constructors

public GrantedAuthorityFromAssertionAttributesUserDetailsService (String[] attributes)

Public Methods

public void setConvertToUpperCase (boolean convertToUpperCase)

Converts the returned attribute values to uppercase values.

Parameters
convertToUpperCase true if it should convert, false otherwise.

Protected Methods

protected UserDetails loadUserDetails (Assertion assertion)

Protected template method for construct a UserDetails via the supplied CAS assertion.

Parameters
assertion the assertion to use to construct the new UserDetails. CANNOT be NULL.
Returns
  • the newly constructed UserDetails.