构造器和说明 |
---|
UserDetails(java.lang.String username,
java.lang.String password,
Authority[] authorities) |
限定符和类型 | 方法和说明 |
---|---|
Authority[] |
getAuthorities()
Returns the authorities granted to the user.
|
java.lang.String |
getPassword()
Returns the password used to authenticate the user.
|
java.lang.String |
getUsername()
Returns the username used to authenticate the user.
|
protected void |
setAuthorities(Authority[] authorities) |
java.lang.String |
toString() |
public UserDetails(java.lang.String username, java.lang.String password, Authority[] authorities)
public Authority[] getAuthorities()
User
null
.getAuthorities
在接口中 User
null
)public java.lang.String getPassword()
User
null
.getPassword
在接口中 User
null
)public java.lang.String getUsername()
User
null
.getUsername
在接口中 User
null
)protected void setAuthorities(Authority[] authorities)
public java.lang.String toString()
toString
在类中 java.lang.Object