Class FlowableAuthenticationSecurityScope

    • Field Detail

      • authentication

        protected final org.springframework.security.core.Authentication authentication
    • Constructor Detail

      • FlowableAuthenticationSecurityScope

        public FlowableAuthenticationSecurityScope​(org.springframework.security.core.Authentication authentication)
    • Method Detail

      • 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
      • getGroupIds

        public Set<String> getGroupIds()
        Description copied from interface: SecurityScope
        The group ids for which the security scope is meant for
        Specified by:
        getGroupIds 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
      • 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
      • extractAuthoritiesStartingWith

        protected Stream<String> extractAuthoritiesStartingWith​(String prefix)