|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsrc.groovy.cr.co.arquetipos.password.KeyCache
class KeyCache
Simple key/password pair cache, with an attached timestamp to indicate how long it was since it was evaluated.
Field Summary | |
---|---|
java.lang.String |
key
|
java.lang.String |
password
|
private java.util.Calendar |
timestamp
|
Constructor Summary | |
KeyCache()
|
Method Summary | |
---|---|
boolean
|
isExpired(int seconds)
|
void
|
setPassword(java.lang.String newPassword)
|
void
|
touch()
|
Methods inherited from class java.lang.Object | |
---|---|
hashCode, getClass, equals, toString, wait, wait, wait, notify, notifyAll |
Field Detail |
---|
public java.lang.String key
public java.lang.String password
private java.util.Calendar timestamp
Constructor Detail |
---|
KeyCache()
Method Detail |
---|
public boolean isExpired(int seconds)
public void setPassword(java.lang.String newPassword)
public void touch()
Groovy Documentation