Class FlowableUser

java.lang.Object
org.springframework.security.core.userdetails.User
org.flowable.spring.security.FlowableUser
All Implemented Interfaces:
Serializable, FlowableUserDetails, org.springframework.security.core.CredentialsContainer, org.springframework.security.core.userdetails.UserDetails

public class FlowableUser extends org.springframework.security.core.userdetails.User implements FlowableUserDetails
A flowable implementation of UserDetails.
Author:
Filip Hrisafov
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.security.core.userdetails.User

    org.springframework.security.core.userdetails.User.UserBuilder
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final List<Group>
     
    protected final User
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    FlowableUser(User user, boolean active, List<? extends Group> groups, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
     
    FlowableUser(User user, String username, boolean enabled, List<? extends Group> groups, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    The groups of the Flowable IDM User.
    The user object containing the information for the Flowable IDM User.

    Methods inherited from class org.springframework.security.core.userdetails.User

    builder, equals, getAuthorities, getPassword, getUsername, hashCode, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled, toString, withDefaultPasswordEncoder, withUserDetails, withUsername

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.springframework.security.core.userdetails.UserDetails

    getAuthorities, getPassword, getUsername, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled
  • Field Details

    • user

      protected final User user
    • groups

      protected final List<Group> groups
  • Constructor Details

    • FlowableUser

      public FlowableUser(User user, boolean active, List<? extends Group> groups, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
    • FlowableUser

      public FlowableUser(User user, String username, boolean enabled, List<? extends Group> groups, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
  • Method Details

    • getUser

      public User getUser()
      Description copied from interface: FlowableUserDetails
      The user object containing the information for the Flowable IDM User. If not using the default FlowableUserDetailsService make sure that you are not reusing the User returned by the IDM and that you use a correct serializable User. For example use UserDto
      Specified by:
      getUser in interface FlowableUserDetails
    • getGroups

      public List<Group> getGroups()
      Description copied from interface: FlowableUserDetails
      The groups of the Flowable IDM User. If not using the default FlowableUserDetailsService make sure that you are not reusing the Groups returned by the IDM and that you use a correct serializable Group. For example use GroupDetails
      Specified by:
      getGroups in interface FlowableUserDetails
    • eraseCredentials

      public void eraseCredentials()
      Specified by:
      eraseCredentials in interface org.springframework.security.core.CredentialsContainer
      Overrides:
      eraseCredentials in class org.springframework.security.core.userdetails.User