|
|||||||||
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.test.environmentalAttributes.GetAttributesTest
public class GetAttributesTest
This class defines a regression test, which tests the function of getting environmental attribute specifications from the current policy.
Field Summary |
---|
Fields inherited from class issrg.pba.rbac.Time |
---|
log, s_defaultTimeZone, TIME_TYPE |
Constructor Summary | |
---|---|
GetAttributesTest()
Creates a new instance of GetAttributesTest |
Method Summary | |
---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
|
org.w3c.dom.Element |
getAttributes()
|
java.util.Date |
getTime()
This method returns the time returned by the last call to latch, so all calculations will be consistent. |
void |
initialise(java.lang.String name)
this is used to initialise a PERMIS instance. |
java.util.Date |
latch()
The time is stopped forever, so the latch returns the same as getTime() |
static void |
main(java.lang.String[] args)
|
void |
setTime(java.util.Date time)
This method sets the current time. |
java.util.Date |
toTime(java.lang.String timeString)
This method returns the time encoded as a string. |
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 |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public GetAttributesTest() throws HandlerServiceException
HandlerServiceException
Method Detail |
---|
public static void main(java.lang.String[] args)
public int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator
public void initialise(java.lang.String name) throws HandlerServiceException
name,
- which is a configuration file name
HandlerServiceException
public java.util.Date latch()
latch
in class Clock
public java.util.Date getTime()
Clock
getTime
in class Clock
public java.util.Date toTime(java.lang.String timeString) throws java.lang.IllegalArgumentException
timeString
- - the time to set; the format is the same as the string representation of time in the policy, e.g. "2005-09-25T23:59:59"
java.lang.IllegalArgumentException
public void setTime(java.util.Date time)
time
- - the time to set.public org.w3c.dom.Element getAttributes() throws HandlerServiceException
HandlerServiceException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |