org.zeroexchange.security
Class ZEUserDetails

java.lang.Object
  extended by org.zeroexchange.security.ZEUserDetails
All Implemented Interfaces:
Serializable, org.springframework.security.core.userdetails.UserDetails

public class ZEUserDetails
extends Object
implements org.springframework.security.core.userdetails.UserDetails

Author:
black
See Also:
Serialized Form

Constructor Summary
ZEUserDetails(Collection<org.springframework.security.core.GrantedAuthority> authorities, User user, Credential loggedCredential)
           
 
Method Summary
 Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
           
 String getPassword()
           
 User getUser()
           
 String getUsername()
           
 boolean isAccountNonExpired()
           
 boolean isAccountNonLocked()
           
 boolean isCredentialsNonExpired()
           
 boolean isEnabled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZEUserDetails

public ZEUserDetails(Collection<org.springframework.security.core.GrantedAuthority> authorities,
                     User user,
                     Credential loggedCredential)
Method Detail

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface org.springframework.security.core.userdetails.UserDetails

isCredentialsNonExpired

public boolean isCredentialsNonExpired()
Specified by:
isCredentialsNonExpired in interface org.springframework.security.core.userdetails.UserDetails

getUser

public User getUser()

isAccountNonLocked

public boolean isAccountNonLocked()
Specified by:
isAccountNonLocked in interface org.springframework.security.core.userdetails.UserDetails

isAccountNonExpired

public boolean isAccountNonExpired()
Specified by:
isAccountNonExpired in interface org.springframework.security.core.userdetails.UserDetails

getUsername

public String getUsername()
Specified by:
getUsername in interface org.springframework.security.core.userdetails.UserDetails

getPassword

public String getPassword()
Specified by:
getPassword in interface org.springframework.security.core.userdetails.UserDetails

getAuthorities

public Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
Specified by:
getAuthorities in interface org.springframework.security.core.userdetails.UserDetails


Copyright © 2013. All Rights Reserved.