public class ErrorAccessControl.AccessObject extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
block |
protected Timestamp |
lastAccess |
protected String |
loginUser |
protected int |
numAccess |
| Constructor and Description |
|---|
ErrorAccessControl.AccessObject(String user) |
| Modifier and Type | Method and Description |
|---|---|
Timestamp |
getLastAccess()
Return the last user attempt without success
|
int |
getNumAccess()
The actual user attempts to login without success
|
String |
getUser()
Retrieve the username associated to this AccessObject
|
boolean |
isUserBlock()
Check if the user of this AccesObject is blocked
|
void |
setLastAccess(Timestamp lastAccess)
Set the last unsuccessful access.
|
void |
setNumAccess(int numAccess)
Set the number of attempts to login
|
void |
setUserBlock(boolean block)
Set the block (blocked/unblocked) state to the user of this
AccessObject
|
protected String loginUser
protected Timestamp lastAccess
protected boolean block
protected int numAccess
public ErrorAccessControl.AccessObject(String user) throws UserBlockedException
UserBlockedExceptionpublic String getUser()
public int getNumAccess()
public void setNumAccess(int numAccess)
numAccess - Number of access to setpublic Timestamp getLastAccess()
public void setLastAccess(Timestamp lastAccess)
lastAccess - The timestamps of the last unsuccessful accesspublic boolean isUserBlock()
public void setUserBlock(boolean block)
block - A boolean to set the block state to user of this
AccessObjectCopyright © 2016 Imatia Innovation S.L.. All rights reserved.