fi.hut.tcm.spki.impl
Class Valid
java.lang.Object
|
+--fi.hut.tcm.spki.impl.Composite
|
+--fi.hut.tcm.spki.impl.Valid
- public class Valid
- extends Composite
- implements Validity, Composite, Component
Valid
Valid contains details that define when the certificate is valid. The
components are NotBefore, NotAfter and OnlineTest, in that order. Each
field is optional and could be omitted.
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
Valid
public Valid()
Valid
public Valid(java.util.Date notAfter)
Valid
public Valid(java.util.Date notBefore,
java.util.Date notAfter)
Valid
public Valid(OnlineTest online)
Valid
public Valid(java.util.Date notAfter,
OnlineTest online)
Valid
public Valid(java.util.Date notBefore,
java.util.Date notAfter,
OnlineTest online)
check
public boolean check(Component addition)
throws java.lang.IllegalStateException
- Specified by:
- check in interface Composite
- Overrides:
- check in class Composite
accept
public void accept(Visitor visitor)
- Specified by:
- accept in interface Component
- Overrides:
- accept in class Composite
getNotBefore
public java.util.Date getNotBefore()
- Specified by:
- getNotBefore in interface Validity
getNotAfter
public java.util.Date getNotAfter()
- Specified by:
- getNotAfter in interface Validity
getOnlineTest
public OnlineTest getOnlineTest()
- Specified by:
- getOnlineTest in interface Validity
test
public boolean test()
- Specified by:
- test in interface Validity
toString
public java.lang.String toString()
- Overrides:
- toString in class Composite