public final class SpringSecurityHelper extends Object
Constructor and Description |
---|
SpringSecurityHelper() |
Modifier and Type | Method and Description |
---|---|
static List<org.springframework.security.core.GrantedAuthority> |
buildAuthorities(LinkedHashMap<String,org.pac4j.core.profile.CommonProfile> profiles)
Build a list of authorities from a map of profiles.
|
static void |
populateAuthentication(LinkedHashMap<String,org.pac4j.core.profile.CommonProfile> profiles)
Populate the authenticated user profiles in the Spring Security context.
|
public static List<org.springframework.security.core.GrantedAuthority> buildAuthorities(LinkedHashMap<String,org.pac4j.core.profile.CommonProfile> profiles)
profiles
- a map of profilespublic static void populateAuthentication(LinkedHashMap<String,org.pac4j.core.profile.CommonProfile> profiles)
profiles
- the linked hashmap of profilesCopyright © 2016. All rights reserved.