public class PrimaryAttributePortletPreAuthenticatedAuthenticationDetailsSource
extends org.jasig.springframework.security.portlet.authentication.PortletPreAuthenticatedAuthenticationDetailsSource
setPrimaryUserAttributesPreference(String).
If multiple attribute names are specified in the preference they are checked in order and the first
value returned is used.
If no attribute is found an AccessDeniedException is thrown| Constructor and Description |
|---|
PrimaryAttributePortletPreAuthenticatedAuthenticationDetailsSource() |
| Modifier and Type | Method and Description |
|---|---|
org.jasig.springframework.security.portlet.authentication.PreAuthenticatedGrantedAuthoritiesPortletAuthenticationDetails |
buildDetails(javax.portlet.PortletRequest context) |
String |
getPrimaryUserAttribute(javax.portlet.PortletRequest request)
Get the user's primary attribute.
|
void |
setPrimaryUserAttributesPreference(String primaryUserAttributesPreference)
Portlet preference to get the USER_INFO attribute names from.
|
public PrimaryAttributePortletPreAuthenticatedAuthenticationDetailsSource()
public void setPrimaryUserAttributesPreference(String primaryUserAttributesPreference)
public org.jasig.springframework.security.portlet.authentication.PreAuthenticatedGrantedAuthoritiesPortletAuthenticationDetails buildDetails(javax.portlet.PortletRequest context)
buildDetails in interface org.springframework.security.authentication.AuthenticationDetailsSource<javax.portlet.PortletRequest,org.jasig.springframework.security.portlet.authentication.PreAuthenticatedGrantedAuthoritiesPortletAuthenticationDetails>buildDetails in class org.jasig.springframework.security.portlet.authentication.PortletPreAuthenticatedAuthenticationDetailsSourcepublic final String getPrimaryUserAttribute(javax.portlet.PortletRequest request)
primaryUserAttributesPreference - The portlet preference that contains a list of user attributes to inspect in order. The first attribute with a value is returned.org.springframework.web.portlet.ModelAndViewDefiningException - If no emplid is foundCopyright © 2015 Jasig. All Rights Reserved.