类 UserInfo
java.lang.Object
org.springframework.security.core.userdetails.User
com.flyfish.oauth.spring.domain.UserInfo
- 所有已实现的接口:
Serializable, Cloneable, org.springframework.security.core.CredentialsContainer, org.springframework.security.core.userdetails.UserDetails
public class UserInfo
extends org.springframework.security.core.userdetails.User
implements Cloneable
测试用的用户信息
- 作者:
- wangyu
- 另请参阅:
-
嵌套类概要
从类继承的嵌套类/接口 org.springframework.security.core.userdetails.User
org.springframework.security.core.userdetails.User.UserBuilder -
构造器概要
构造器构造器说明UserInfo(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) Construct theUserwith the details required byDaoAuthenticationProvider.UserInfo(String username, String password, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) Calls the more complex constructor with all boolean arguments set totrue. -
方法概要
从类继承的方法 org.springframework.security.core.userdetails.User
builder, equals, eraseCredentials, getAuthorities, getPassword, getUsername, hashCode, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled, toString, withDefaultPasswordEncoder, withUserDetails, withUsername
-
构造器详细资料
-
UserInfo
public UserInfo(String username, String password, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) Calls the more complex constructor with all boolean arguments set totrue.- 参数:
username-password-authorities-
-
UserInfo
public UserInfo(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) Construct theUserwith the details required byDaoAuthenticationProvider.- 参数:
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
-
-
方法详细资料
-
clone
- 覆盖:
clone在类中Object- 抛出:
CloneNotSupportedException
-
cloneUser
-