fi.hut.tcm.spki.impl
Class SpkiCrl

java.lang.Object
  |
  +--java.security.cert.CRL
        |
        +--fi.hut.tcm.spki.SPKICRL
              |
              +--fi.hut.tcm.spki.impl.SpkiCrl

class SpkiCrl
extends SPKICRL
implements Composite, Component

SpkiCrl


Field Summary
private  java.util.Vector children
           
 
Fields inherited from class java.security.cert.CRL
type
 
Constructor Summary
protected SpkiCrl()
           
 
Method Summary
 void accept(Visitor visitor)
           
 int add(Component addThis)
          Add a new component to a the crl.
 boolean check(Component addition)
          Checks if the component to be added is of correct type.
 boolean equals(java.lang.Object other)
           
 Component get(Component childClass)
          This function returns the first child x that fullfills (x instanceof childClass).
 Component get(int number)
          Get returns the wanted child by it's number.
 byte[] getEncoded()
           
 java.util.Date getNotAfter()
           
 java.util.Date getNotBefore()
           
 int getVersion()
           
 boolean isRevoked(java.security.cert.Certificate cert)
           
 boolean isValid()
           
 java.util.Iterator iterator()
          Returns an iterator over all the children.
 boolean remove(Component child)
          Removes the first occurrence of this object.
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.security.cert.CRL
getType
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

children

private java.util.Vector children
Constructor Detail

SpkiCrl

protected SpkiCrl()
Method Detail

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class SPKICRL

getEncoded

public byte[] getEncoded()
Overrides:
getEncoded in class SPKICRL

getVersion

public int getVersion()
Overrides:
getVersion in class SPKICRL

getNotBefore

public java.util.Date getNotBefore()
Overrides:
getNotBefore in class SPKICRL

getNotAfter

public java.util.Date getNotAfter()
Overrides:
getNotAfter in class SPKICRL

isValid

public boolean isValid()
Overrides:
isValid in class SPKICRL

isRevoked

public boolean isRevoked(java.security.cert.Certificate cert)
Overrides:
isRevoked in class java.security.cert.CRL

toString

public java.lang.String toString()
Overrides:
toString in class java.security.cert.CRL

add

public int add(Component addThis)
        throws java.lang.IllegalArgumentException,
               java.lang.IllegalStateException
Add a new component to a the crl. Returns the index of the added component. This index number may later change if earlier components are removed.
Specified by:
add in interface Composite

get

public Component get(int number)
              throws java.lang.ArrayIndexOutOfBoundsException
Get returns the wanted child by it's number. If not found, throws ArrayIndexOutOfBoundsException.
Specified by:
get in interface Composite

get

public Component get(Component childClass)
This function returns the first child x that fullfills (x instanceof childClass). This is handy for searching Composites and subclasses of ByteString, but not ByteStrings.
Specified by:
get in interface Composite

remove

public boolean remove(Component child)
Removes the first occurrence of this object. Returns true if the argument was a component of this composite; false otherwise. Elements of a higher index are moved one step downwards.
Specified by:
remove in interface Composite

iterator

public java.util.Iterator iterator()
Returns an iterator over all the children.
Specified by:
iterator in interface Composite

size

public int size()
Specified by:
size in interface Composite

check

public boolean check(Component addition)
              throws java.lang.IllegalStateException
Checks if the component to be added is of correct type. Returns true if it is, false if it is not. Throws IllegalStateException if this component is of right type, but cannot be added now (there is already a max number of such components, for example).
Specified by:
check in interface Composite

accept

public void accept(Visitor visitor)
Specified by:
accept in interface Component