Interface SecurityScope

All Known Implementing Classes:
FlowableAuthenticationSecurityScope, FlowablePrincipalSecurityScope

public interface SecurityScope
Security scope that can be used for passing the needed security scope accessibility to the Java API.
Author:
Filip Hrisafov
  • Method Summary

    Modifier and Type Method Description
    java.util.Set<java.lang.String> getGroupKeys()
    The group keys for which the security scope is meant for
    java.lang.String getTenantId()
    The tenant id for which the security scope is meant for
    java.lang.String getUserDefinitionKey()
    The user definition key for which the security scope is meant for
    java.lang.String getUserId()
    The id of the user for which the security scope is meant for
    boolean hasAuthority​(java.lang.String authority)
    Check if the security scope has the given authority.
  • Method Details

    • getUserId

      java.lang.String getUserId()
      The id of the user for which the security scope is meant for
      Returns:
      the user id
    • getGroupKeys

      java.util.Set<java.lang.String> getGroupKeys()
      The group keys for which the security scope is meant for
      Returns:
      the group keys
    • getTenantId

      java.lang.String getTenantId()
      The tenant id for which the security scope is meant for
      Returns:
      the tenant id
    • getUserDefinitionKey

      java.lang.String getUserDefinitionKey()
      The user definition key for which the security scope is meant for
      Returns:
      the user definition key
    • hasAuthority

      boolean hasAuthority​(java.lang.String authority)
      Check if the security scope has the given authority.
      Parameters:
      authority - the authority to be checked
      Returns:
      true if the security scope has the given authority, false otherwise