Package org.flowable.spring.security
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 -
Constructor Summary
ConstructorsConstructorDescriptionFlowableUser(User user, boolean active, List<? extends Group> groups, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) FlowableUser(User user, boolean active, List<? extends Group> groups, List<? extends Privilege> privileges, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) Deprecated.FlowableUser(User user, String username, boolean enabled, List<? extends Group> groups, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) -
Method Summary
Modifier and TypeMethodDescriptionvoidThe groups of the Flowable IDM User.Deprecated.useUser.getAuthorities()insteadgetUser()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, withUsernameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.security.core.userdetails.UserDetails
getAuthorities, getPassword, getUsername, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled
-
Field Details
-
user
-
groups
-
privileges
-
-
Constructor Details
-
FlowableUser
@Deprecated public FlowableUser(User user, boolean active, List<? extends Group> groups, List<? extends Privilege> privileges, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) Deprecated.Privileges are no longer required useFlowableUser(User, boolean, List, Collection)instead -
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
Description copied from interface:FlowableUserDetailsThe 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 useUserDto- Specified by:
getUserin interfaceFlowableUserDetails
-
getGroups
Description copied from interface:FlowableUserDetailsThe 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 useGroupDetails- Specified by:
getGroupsin interfaceFlowableUserDetails
-
getPrivileges
Deprecated.useUser.getAuthorities()insteadThe privileges are asGrantedAuthority. THey can be extracted throughUser.getAuthorities() -
eraseCredentials
public void eraseCredentials()- Specified by:
eraseCredentialsin interfaceorg.springframework.security.core.CredentialsContainer- Overrides:
eraseCredentialsin classorg.springframework.security.core.userdetails.User
-
FlowableUser(User, boolean, List, Collection)instead