|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openwms.core.service.spring.UserWrapper
public class UserWrapper
An UserWrapper is used as an adapter between Role
s or
SecurityObject
s and Spring's GrantedAuthority
objects.
SecurityObject
,
Role
,
GrantedAuthority
,
UserDetails
,
Serialized FormConstructor Summary | |
---|---|
UserWrapper(User user)
Create a new UserWrapper. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Collection<org.springframework.security.core.GrantedAuthority> |
getAuthorities()
|
String |
getPassword()
|
User |
getUser()
Return the wrapped User instance. |
String |
getUsername()
|
int |
hashCode()
|
boolean |
isAccountNonExpired()
|
boolean |
isAccountNonLocked()
|
boolean |
isCredentialsNonExpired()
|
boolean |
isEnabled()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserWrapper(User user)
user
- The User to wrapMethod Detail |
---|
public User getUser()
User
instance.
getUser
in interface UserHolder
User
UserHolder.getUser()
public Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities
in interface org.springframework.security.core.userdetails.UserDetails
null
)UserDetails.getAuthorities()
public String getPassword()
getPassword
in interface org.springframework.security.core.userdetails.UserDetails
null
)UserDetails.getPassword()
public String getUsername()
getUsername
in interface org.springframework.security.core.userdetails.UserDetails
null
)UserDetails.getUsername()
public boolean isAccountNonExpired()
isAccountNonExpired
in interface org.springframework.security.core.userdetails.UserDetails
true
if the user's account is valid (ie
non-expired), false
if no longer valid (ie expired)UserDetails.isAccountNonExpired()
public boolean isAccountNonLocked()
isAccountNonLocked
in interface org.springframework.security.core.userdetails.UserDetails
true
if the user is not locked, false
otherwiseUserDetails.isAccountNonLocked()
public boolean isCredentialsNonExpired()
isCredentialsNonExpired
in interface org.springframework.security.core.userdetails.UserDetails
true
if the user's credentials are valid (ie
non-expired), false
if no longer valid (ie expired)UserDetails.isCredentialsNonExpired()
public boolean isEnabled()
isEnabled
in interface org.springframework.security.core.userdetails.UserDetails
true
if the user is enabled, false
otherwiseUserDetails.isEnabled()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |