Package org.kie.internal.identity

## Interface IdentityProvider

-     public interface IdentityProvider

- - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `static String` | `UNKNOWN_USER_IDENTITY` |

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `String` | `getName()` |
    `List<String>` | `getRoles()` |
    `default List<String>` | `getRolesFor​(String userId)` |
    `default boolean` | `hasRole​(String role)` |
    `default boolean` | `hasRoleFor​(String userId, String role)` |
    `default void` | `removeContextIdentity()` |
    `default void` | `setContextIdentity​(String userId)` |

- - ### Field Detail

    - #### UNKNOWN_USER_IDENTITY

          static final String UNKNOWN_USER_IDENTITY

      See Also:
        Constant Field Values

  - ### Method Detail

    - #### getName

          String getName()

    - #### getRolesFor

          default List<String> getRolesFor​(String userId)

    - #### hasRoleFor

          default boolean hasRoleFor​(String userId,
                                     String role)

    - #### getRoles

          List<String> getRoles()

    - #### hasRole

          default boolean hasRole​(String role)

    - #### setContextIdentity

          default void setContextIdentity​(String userId)

    - #### removeContextIdentity

          default void removeContextIdentity()