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 and Description
    `SecurityInfoHelper()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and 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)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SecurityInfoHelper

          public SecurityInfoHelper()

  - ### 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 type `Group` is considered or the single subject inside the CallerPrincipal group.
      Parameters:
        `subject` -
      Returns:
        the authenticated subject

    - #### createGroup

          protected static Group createGroup(String name,
                          Set<Principal> principals)

    - #### getRoleSets

          protected static Group[] getRoleSets(Collection<String> roleSet)

Copyright © 2015. All Rights Reserved.