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()` |
    `boolean` | `hasRole​(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()

    - #### getRoles

          List<String> getRoles()

    - #### hasRole

          boolean hasRole​(String role)

    - #### setContextIdentity

          default void setContextIdentity​(String userId)

    - #### removeContextIdentity

          default void removeContextIdentity()