Class BroadleafExternalAuthenticationUserDetails
java.lang.Object
org.springframework.security.core.userdetails.User
org.broadleafcommerce.common.security.BroadleafExternalAuthenticationUserDetails
- All Implemented Interfaces:
Serializable
,org.springframework.security.core.CredentialsContainer
,org.springframework.security.core.userdetails.UserDetails
public class BroadleafExternalAuthenticationUserDetails
extends org.springframework.security.core.userdetails.User
This is an extension of Spring's User class to provide additional data to the UserDetails interface. This should be used by derivitave
authentication providers to return an instance of UserDetails when authenticating against a system other than the Broadleaf tables (e.g. LDAP)
User: Kelly Tisdell
Date: 6/19/12
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.security.core.userdetails.User
org.springframework.security.core.userdetails.User.UserBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionBroadleafExternalAuthenticationUserDetails
(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) BroadleafExternalAuthenticationUserDetails
(String username, String password, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) This sets the username, password, and authorities. -
Method Summary
Modifier and TypeMethodDescriptiongetEmail()
getSite()
void
void
setFirstName
(String firstName) void
setLastName
(String lastName) void
Methods inherited from class org.springframework.security.core.userdetails.User
builder, equals, eraseCredentials, getAuthorities, getPassword, getUsername, hashCode, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled, toString, withDefaultPasswordEncoder, withUserDetails, withUsername
-
Constructor Details
-
BroadleafExternalAuthenticationUserDetails
public BroadleafExternalAuthenticationUserDetails(String username, String password, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) This sets the username, password, and authorities. It also set the enabled, accountNonExpired, credentialsNonExpired, and accountNonLocked properties to true.- Parameters:
username
-password
-authorities
-
-
BroadleafExternalAuthenticationUserDetails
public BroadleafExternalAuthenticationUserDetails(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
-
-
Method Details
-
getFirstName
-
setFirstName
-
getLastName
-
setLastName
-
getEmail
-
setEmail
-
getSite
-
setSite
-