Class FlowablePrincipalSecurityScope

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

public class FlowablePrincipalSecurityScope
extends java.lang.Object
implements SecurityScope
Author:
Filip Hrisafov
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.security.Principal principal  
  • Constructor Summary

    Constructors 
    Constructor Description
    FlowablePrincipalSecurityScope​(java.security.Principal principal)  
  • 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.flowable.core.common.api.security.SecurityScope

    getImpersonationScope
  • Field Details

    • principal

      protected final java.security.Principal principal
  • Constructor Details

  • Method Details

    • getUserId

      public java.lang.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 java.util.Set<java.lang.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 java.lang.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 java.lang.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​(java.lang.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