类 HerodotusUser
java.lang.Object
cn.herodotus.engine.oauth2.core.definition.domain.HerodotusUser
- 所有已实现的接口:
Serializable,org.springframework.security.core.CredentialsContainer,org.springframework.security.core.userdetails.UserDetails
public class HerodotusUser
extends Object
implements org.springframework.security.core.userdetails.UserDetails, org.springframework.security.core.CredentialsContainer
- 作者:
- gengwei.zheng
- 另请参阅:
-
构造器概要
构造器构造器说明HerodotusUser(String userId, String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, Set<String> roles, String employeeId, String avatar) Construct theUserwith the details required byorg.springframework.security.authentication.dao.DaoAuthenticationProviderHerodotusUser(String userId, String username, String password, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) Calls the more complex constructor with all boolean arguments set totrue.HerodotusUser(String userId, String username, String password, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, Set<String> roles) Calls the more complex constructor with all boolean arguments set totrue. -
方法概要
修饰符和类型方法说明booleanReturnstrueif the supplied object is aUserinstance with the sameusernamevalue.voidCollection<org.springframework.security.core.GrantedAuthority>getRoles()inthashCode()Returns the hashcode of theusername.booleanbooleanbooleanbooleantoString()
-
构造器详细资料
-
HerodotusUser
public HerodotusUser() -
HerodotusUser
public HerodotusUser(String userId, String username, String password, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) Calls the more complex constructor with all boolean arguments set totrue. -
HerodotusUser
public HerodotusUser(String userId, String username, String password, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, Set<String> roles) Calls the more complex constructor with all boolean arguments set totrue. -
HerodotusUser
public HerodotusUser(String userId, String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, Set<String> roles, String employeeId, String avatar) Construct theUserwith the details required byorg.springframework.security.authentication.dao.DaoAuthenticationProvider- 参数:
username- the username presented to theDaoAuthenticationProviderpassword- the password that should be presented to theDaoAuthenticationProviderenabled- set totrueif the user is enabledaccountNonExpired- set totrueif the account has not expiredcredentialsNonExpired- set totrueif the credentials have not expiredaccountNonLocked- set totrueif the account is not lockedauthorities- the authorities that should be granted to the caller if they presented the correct username and password and the user is enabled. Not null.- 抛出:
IllegalArgumentException- if anullvalue was passed either as a parameter or as an element in theGrantedAuthoritycollection
-
-
方法详细资料
-
getAuthorities
- 指定者:
getAuthorities在接口中org.springframework.security.core.userdetails.UserDetails
-
getPassword
- 指定者:
getPassword在接口中org.springframework.security.core.userdetails.UserDetails
-
getUsername
- 指定者:
getUsername在接口中org.springframework.security.core.userdetails.UserDetails
-
isEnabled
public boolean isEnabled()- 指定者:
isEnabled在接口中org.springframework.security.core.userdetails.UserDetails
-
isAccountNonExpired
public boolean isAccountNonExpired()- 指定者:
isAccountNonExpired在接口中org.springframework.security.core.userdetails.UserDetails
-
isAccountNonLocked
public boolean isAccountNonLocked()- 指定者:
isAccountNonLocked在接口中org.springframework.security.core.userdetails.UserDetails
-
isCredentialsNonExpired
public boolean isCredentialsNonExpired()- 指定者:
isCredentialsNonExpired在接口中org.springframework.security.core.userdetails.UserDetails
-
eraseCredentials
public void eraseCredentials()- 指定者:
eraseCredentials在接口中org.springframework.security.core.CredentialsContainer
-
getUserId
-
getRoles
-
getEmployeeId
-
getAvatar
-
equals
Returnstrueif the supplied object is aUserinstance with the sameusernamevalue.In other words, the objects are equal if they have the same username, representing the same principal.
-
hashCode
public int hashCode()Returns the hashcode of theusername. -
toString
-