com.novell.security.japi.pki
Class NPKI_crlList

java.lang.Object
  |
  +--com.novell.security.japi.pki.NPKI_crlList

public class NPKI_crlList
extends java.lang.Object

Helper class that contains a list of CRLs for other NPKI Java classes to consume.


Constructor Summary
NPKI_crlList()
          Constructor Initializes the list of CRLs.
 
Method Summary
 void addCrl(com.novell.security.japi.pki.NPKI_crl crl)
          Adds a specified CRL to the CRL List.
 com.novell.security.japi.pki.NPKI_crl getCrl(int crlNum)
          Retrieves a CRL from the list at the specified index.
 int getNumberOfCrls()
          Accessor function to get the number of CRLs in the list.
 boolean removeCrl(com.novell.security.japi.pki.NPKI_crl crl)
          Removes a CRL from the list that matches the specified CRL
 void removeCrlAt(int crlNum)
          Removes a CRL from the list at the specified index.
 int size()
          Accessor function to get the number of CRLs in the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NPKI_crlList

public NPKI_crlList()
             throws java.io.IOException
Constructor Initializes the list of CRLs.

Throws:
java.io.IOException - if an I/O error occurs.
Method Detail

addCrl

public void addCrl(com.novell.security.japi.pki.NPKI_crl crl)
Adds a specified CRL to the CRL List.

Parameters:
crl - A CRL object with a CRL to add to the list.

getCrl

public com.novell.security.japi.pki.NPKI_crl getCrl(int crlNum)
                                             throws java.lang.ArrayIndexOutOfBoundsException
Retrieves a CRL from the list at the specified index.

Parameters:
crlNum - index of the CRL to retrieve
Returns:
CRL object containing the CRL
Throws:
java.lang.ArrayIndexOutOfBoundsException - if the index was invalid.

removeCrl

public boolean removeCrl(com.novell.security.japi.pki.NPKI_crl crl)
Removes a CRL from the list that matches the specified CRL

Parameters:
crl - The CRL to be removed from the list.
Returns:
true on success.

removeCrlAt

public void removeCrlAt(int crlNum)
                 throws java.lang.ArrayIndexOutOfBoundsException
Removes a CRL from the list at the specified index.

Parameters:
crlNum - Index of the CRL to be deleted
Throws:
java.lang.ArrayIndexOutOfBoundsException - if the index was invalid

getNumberOfCrls

public int getNumberOfCrls()
Accessor function to get the number of CRLs in the list.

Returns:
Number of CRL's in the list

size

public int size()
Accessor function to get the number of CRLs in the list.

Returns:
Number of CRLs in the list