public class DefaultAccount extends Object implements Account
| Constructor and Description |
|---|
DefaultAccount(String name,
String description) |
DefaultAccount(String username,
String description,
Map<String,Object> details) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object rhs) |
String |
getAuthorities() |
String |
getDescription() |
Map<String,Object> |
getDetails()
Returns the authorities granted to the user.
|
String |
getName() |
String |
getPermissions() |
String |
getRemoteToken() |
int |
getStatus() |
int |
hashCode() |
boolean |
isAccountExpired()
Indicates whether the user's account has expired.
|
boolean |
isAccountLocked()
Indicates whether the user is locked or unlocked.
|
boolean |
isCredentialExpired()
Indicates whether the user's credentials (password) has expired.
|
boolean |
isEnabled()
Indicates whether the user is enabled or disabled.
|
void |
setAccountExpired(boolean accountExpired) |
void |
setAccountLocked(boolean accountLocked) |
void |
setAuthorities(String authorities) |
void |
setCredentialExpired(boolean credentialExpired) |
void |
setDescription(String description) |
void |
setDetails(Map<String,Object> details) |
void |
setEnabled(boolean enabled) |
void |
setName(String name) |
void |
setPermissions(String permissions) |
void |
setRemoteToken(String remoteToken) |
void |
setStatus(int status) |
String |
toString() |
public DefaultAccount(String username, String description, Map<String,Object> details)
public DefaultAccount(String name, String description) throws IllegalArgumentException
IllegalArgumentExceptionpublic boolean equals(Object rhs)
public String getName()
public void setName(String name)
public String getDescription()
getDescription in interface Accountpublic void setDescription(String description)
public String getRemoteToken()
getRemoteToken in interface Accountpublic void setRemoteToken(String remoteToken)
public Map<String,Object> getDetails()
Accountnull.getDetails in interface Accountnull)public boolean isCredentialExpired()
AccountisCredentialExpired in interface Accounttrue if the user's credentials are valid (ie
non-expired), false if no longer valid (ie expired)public int getStatus()
public void setStatus(int status)
public void setCredentialExpired(boolean credentialExpired)
public void setAccountExpired(boolean accountExpired)
public void setAccountLocked(boolean accountLocked)
public void setEnabled(boolean enabled)
public int hashCode()
public boolean isAccountExpired()
AccountisAccountExpired in interface Accounttrue if the user's account is valid (ie
non-expired), false if no longer valid (ie expired)public boolean isAccountLocked()
AccountisAccountLocked in interface Accounttrue if the user is not locked, false otherwisepublic boolean isEnabled()
Accountpublic String toString()
public String getAuthorities()
public void setAuthorities(String authorities)
public String getPermissions()
public void setPermissions(String permissions)
Copyright © 2005–2018 The Beangle Software. All rights reserved.