Package org.keycloak.adapters.wildfly
Class SecurityInfoHelper
- java.lang.Object
-
- org.keycloak.adapters.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 GroupcreateGroup(String name, Set<Principal> principals)protected static PrincipalgetPrincipal(Subject subject)Get the Principal given the authenticated Subject.protected static Group[]getRoleSets(Collection<String> roleSet)static voidpropagateSessionInfo(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 typeGroupis considered or the single subject inside the CallerPrincipal group.- Parameters:
subject-- Returns:
- the authenticated subject
-
getRoleSets
protected static Group[] getRoleSets(Collection<String> roleSet)
-
-