public abstract class AbstractUser extends Object implements User
Modifier and Type | Field and Description |
---|---|
static String |
USER_TYPE_USER
default user type.
|
Constructor and Description |
---|
AbstractUser() |
Modifier and Type | Method and Description |
---|---|
void |
disable() |
void |
enable() |
boolean |
equals(Object obj) |
void |
eraseCredentials() |
Map<String,String> |
getProperties() |
String |
getType() |
String |
getUsername() |
int |
hashCode() |
boolean |
isAccountNonExpired() |
boolean |
isAccountNonLocked() |
boolean |
isCredentialsNonExpired() |
protected abstract void |
setEnabled(boolean enabled) |
protected abstract void |
setPassword(String password) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAuthorities, getId, getName
public static final String USER_TYPE_USER
public void disable()
public void eraseCredentials()
eraseCredentials
in interface org.springframework.security.core.CredentialsContainer
public Map<String,String> getProperties()
getProperties
in interface User
public String getUsername()
getUsername
in interface org.springframework.security.core.userdetails.UserDetails
public boolean isAccountNonExpired()
isAccountNonExpired
in interface org.springframework.security.core.userdetails.UserDetails
public boolean isAccountNonLocked()
isAccountNonLocked
in interface org.springframework.security.core.userdetails.UserDetails
public boolean isCredentialsNonExpired()
isCredentialsNonExpired
in interface org.springframework.security.core.userdetails.UserDetails
protected abstract void setEnabled(boolean enabled)
protected abstract void setPassword(String password)
Copyright © 2017. All rights reserved.