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.


Fields inherited from class fi.hut.tcm.spki.impl.Composite
children
 
Constructor Summary
Valid()
           
Valid(java.util.Date notAfter)
           
Valid(java.util.Date notBefore, java.util.Date notAfter)
           
Valid(java.util.Date notBefore, java.util.Date notAfter, OnlineTest online)
           
Valid(java.util.Date notAfter, OnlineTest online)
           
Valid(OnlineTest online)
           
 
Method Summary
 void accept(Visitor visitor)
           
 boolean check(Component addition)
           
 java.util.Date getNotAfter()
           
 java.util.Date getNotBefore()
           
 OnlineTest getOnlineTest()
           
 boolean test()
           
 java.lang.String toString()
           
 
Methods inherited from class fi.hut.tcm.spki.impl.Composite
add, get, get, iterator, remove, size
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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