Class FlowableAuthenticationSecurityScope

java.lang.Object
com.flowable.core.spring.security.FlowableAuthenticationSecurityScope
All Implemented Interfaces:
SecurityScope

public class FlowableAuthenticationSecurityScope extends Object implements SecurityScope
Author:
Filip Hrisafov
  • Field Details

  • Constructor Details

    • FlowableAuthenticationSecurityScope

      public FlowableAuthenticationSecurityScope(Authentication authentication)
  • Method Details

    • getUserId

      public String getUserId()
      Description copied from interface: SecurityScope
      The id of the user for which the security scope is meant for
      Specified by:
      getUserId in interface SecurityScope
      Returns:
      the user id
    • getGroupKeys

      public Set<String> getGroupKeys()
      Description copied from interface: SecurityScope
      The group keys for which the security scope is meant for
      Specified by:
      getGroupKeys in interface SecurityScope
      Returns:
      the group keys
    • getTenantId

      public String getTenantId()
      Description copied from interface: SecurityScope
      The tenant id for which the security scope is meant for
      Specified by:
      getTenantId in interface SecurityScope
      Returns:
      the tenant id
    • getUserDefinitionKey

      public String getUserDefinitionKey()
      Description copied from interface: SecurityScope
      The user definition key for which the security scope is meant for
      Specified by:
      getUserDefinitionKey in interface SecurityScope
      Returns:
      the user definition key
    • hasAuthority

      public boolean hasAuthority(String authority)
      Description copied from interface: SecurityScope
      Check if the security scope has the given authority.
      Specified by:
      hasAuthority in interface SecurityScope
      Parameters:
      authority - the authority to be checked
      Returns:
      true if the security scope has the given authority, false otherwise
    • getImpersonationScope

      public SecurityScope getImpersonationScope()
      Description copied from interface: SecurityScope
      Return the SecurityScope for the user doing the impersonation. If no impersonation is happenning then return null
      Specified by:
      getImpersonationScope in interface SecurityScope
      Returns:
      the security scope of the user doing the impersonation or null
    • extractAuthoritiesStartingWith

      protected Stream<String> extractAuthoritiesStartingWith(String prefix)