org.broadleafcommerce.openadmin.server.security.service
Class AdminUserDetails

java.lang.Object
  extended by org.springframework.security.core.userdetails.User
      extended by org.broadleafcommerce.openadmin.server.security.service.AdminUserDetails
All Implemented Interfaces:
Serializable, org.springframework.security.core.CredentialsContainer, org.springframework.security.core.userdetails.UserDetails

public class AdminUserDetails
extends org.springframework.security.core.userdetails.User

Extended DTO class to support salts based on the primary key of the admin user. This allows username changes for admin users.

Author:
Phillip Verheyden (phillipuniverse)
See Also:
AdminSecurityService}, AdminUserDetailsServiceImpl}, Serialized Form

Field Summary
protected  Long id
           
 
Constructor Summary
AdminUserDetails(Long id, String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
           
AdminUserDetails(Long id, String username, String password, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
           
 
Method Summary
 Long getId()
           
 void setId(Long id)
           
 AdminUserDetails withId(Long id)
           
 
Methods inherited from class org.springframework.security.core.userdetails.User
equals, eraseCredentials, getAuthorities, getPassword, getUsername, hashCode, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected Long id
Constructor Detail

AdminUserDetails

public AdminUserDetails(Long id,
                        String username,
                        String password,
                        Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)

AdminUserDetails

public AdminUserDetails(Long id,
                        String username,
                        String password,
                        boolean enabled,
                        boolean accountNonExpired,
                        boolean credentialsNonExpired,
                        boolean accountNonLocked,
                        Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
Method Detail

withId

public AdminUserDetails withId(Long id)

getId

public Long getId()
Returns:
the primary key of the Admin User

setId

public void setId(Long id)
Parameters:
id - the primary key of the Admin User


Copyright © 2013. All Rights Reserved.