src.groovy.cr.co.arquetipos.password
Class KeyCache

java.lang.Object
  src.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

key

public java.lang.String key


password

public java.lang.String password


timestamp

private java.util.Calendar timestamp


 
Constructor Detail

KeyCache

KeyCache()


 
Method Detail

isExpired

public boolean isExpired(int seconds)


setPassword

public void setPassword(java.lang.String newPassword)


touch

public void touch()


 

Groovy Documentation