Class SecurityInfoHelper
- java.lang.Object
-
- org.keycloak.adapters.saml.wildfly.SecurityInfoHelper
-
public class SecurityInfoHelper extends Object
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Constructor Summary
Constructors Constructor Description SecurityInfoHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static Group
createGroup(String name, Set<Principal> principals)
protected static Principal
getPrincipal(Subject subject)
Get the Principal given the authenticated Subject.protected static Group[]
getRoleSets(Collection<String> roleSet)
static void
propagateSessionInfo(KeycloakAccount account)
-
-
-
Method Detail
-
propagateSessionInfo
public static void propagateSessionInfo(KeycloakAccount account)
-
getPrincipal
protected static Principal getPrincipal(Subject subject)
Get the Principal given the authenticated Subject. Currently the first subject that is not of typeGroup
is considered or the single subject inside the CallerPrincipal group.- Parameters:
subject
-- Returns:
- the authenticated subject
-
getRoleSets
protected static Group[] getRoleSets(Collection<String> roleSet)
-
-