|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.pba.rbac.Time issrg.pba.rbac.Clock issrg.pba.rbac.SystemClock
public class SystemClock
This class is the simplest implementation of the Clock interface and returns just system time to the caller. Note that this might not be secure enough for certain applications.
Field Summary |
---|
Fields inherited from class issrg.pba.rbac.Time |
---|
log, s_defaultTimeZone, TIME_TYPE |
Constructor Summary | |
---|---|
SystemClock()
|
Method Summary | |
---|---|
java.util.Date |
getTime()
This method returns the time that was at the last call to latch() method. |
java.util.Date |
latch()
Sets the time for the next calls to getTime and returns the current system time. |
Methods inherited from class issrg.pba.rbac.Clock |
---|
getEvaluationTime |
Methods inherited from class issrg.pba.rbac.Time |
---|
calendarToTime, calendarToTime, compareTo, equals, getDefaultTimeZone, parse, register, setDefaultTimeZone, setDefaultTimeZone, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SystemClock()
Method Detail |
---|
public java.util.Date getTime()
getTime
in class Clock
public java.util.Date latch()
latch
in class Clock
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |