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
,CredentialsContainer
,UserDetails
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
User.UserBuilder
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFlowableUser
(User user, boolean active, List<? extends Group> groups, Collection<? extends GrantedAuthority> authorities) FlowableUser
(User user, String username, boolean enabled, List<? extends Group> groups, Collection<? extends GrantedAuthority> authorities) -
Method Summary
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
-
groups
-
-
Constructor Details
-
FlowableUser
public FlowableUser(User user, boolean active, List<? extends Group> groups, Collection<? extends GrantedAuthority> authorities) -
FlowableUser
public FlowableUser(User user, String username, boolean enabled, List<? extends Group> groups, Collection<? extends GrantedAuthority> authorities)
-
-
Method Details
-
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 useUserDto
- Specified by:
getUser
in interfaceFlowableUserDetails
-
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 useGroupDetails
- Specified by:
getGroups
in interfaceFlowableUserDetails
-
eraseCredentials
public void eraseCredentials()- Specified by:
eraseCredentials
in interfaceCredentialsContainer
- Overrides:
eraseCredentials
in classUser
-