Package org.kie.internal.identity

# Interface IdentityProvider

public interface IdentityProvider

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final String`
  `UNKNOWN_USER_IDENTITY`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getName()`
  `List<String>`
  `getRoles()`
  `boolean`
  `hasRole(String role)`
  `default void`
  `removeContextIdentity()`
  `default void`
  `setContextIdentity(String userId)`

- ## Field Details

  - ### UNKNOWN_USER_IDENTITY

    static final String UNKNOWN_USER_IDENTITY
    See Also:
      - Constant Field Values

- ## Method Details

  - ### getName

    String getName()

  - ### getRoles

    List<String> getRoles()

  - ### hasRole

    boolean hasRole(String role)

  - ### setContextIdentity

    default void setContextIdentity(String userId)

  - ### removeContextIdentity

    default void removeContextIdentity()