Class SpringSecurityHelper
- java.lang.Object
-
- org.pac4j.springframework.security.util.SpringSecurityHelper
-
public final class SpringSecurityHelper extends Object
Helper for Spring Security.- Since:
- 2.0.0
- Author:
- Jerome Leleu
-
-
Constructor Summary
Constructors Constructor Description SpringSecurityHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<org.springframework.security.core.GrantedAuthority>
buildAuthorities(List<org.pac4j.core.profile.UserProfile> profiles)
Build a list of authorities from a list of profiles.static void
populateAuthentication(LinkedHashMap<String,org.pac4j.core.profile.UserProfile> profiles)
Populate the authenticated user profiles in the Spring Security context.
-
-
-
Method Detail
-
buildAuthorities
public static List<org.springframework.security.core.GrantedAuthority> buildAuthorities(List<org.pac4j.core.profile.UserProfile> profiles)
Build a list of authorities from a list of profiles.- Parameters:
profiles
- a map of profiles- Returns:
- a list of authorities
-
populateAuthentication
public static void populateAuthentication(LinkedHashMap<String,org.pac4j.core.profile.UserProfile> profiles)
Populate the authenticated user profiles in the Spring Security context.- Parameters:
profiles
- the linked hashmap of profiles
-
-