com.novell.security.japi.pki
Class NPKI_ErrorList

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

public class NPKI_ErrorList
extends java.lang.Object

List of success and error codes generated when verifing a certificate chain.


Constructor Summary
NPKI_ErrorList()
          Constructor
 
Method Summary
 void addError(com.novell.security.japi.pki.NPKI_Error err)
           
 com.novell.security.japi.pki.NPKI_Error getError(int errNum)
          Gets the error at the specified index.
 int getNumberOfErrors()
          Specifies the number of errors.
 boolean removeError(com.novell.security.japi.pki.NPKI_Error err)
           
 void removeErrorAt(int errNum)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NPKI_ErrorList

public NPKI_ErrorList()
               throws java.io.IOException
Constructor

Throws:
java.io.IOException - PKI error list
Method Detail

addError

public void addError(com.novell.security.japi.pki.NPKI_Error err)

getError

public com.novell.security.japi.pki.NPKI_Error getError(int errNum)
                                                 throws java.lang.ArrayIndexOutOfBoundsException
Gets the error at the specified index.

Parameters:
errNum - Index of the error to be returned.
Returns:
The NPKI_Error object containing the success or error code.
Throws:
java.lang.ArrayIndexOutOfBoundsException - Specifies the boundaries for the exception index***.

removeError

public boolean removeError(com.novell.security.japi.pki.NPKI_Error err)

removeErrorAt

public void removeErrorAt(int errNum)
                   throws java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException

getNumberOfErrors

public int getNumberOfErrors()
Specifies the number of errors.

Returns:
Number of errors in the list.

size

public int size()