com.novell.security.japi.pki
Class NPKI_CertificateNamesList

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

public class NPKI_CertificateNamesList
extends java.lang.Object

Used in conjuction with NPKIAPI.CreateDefaultCertificates to specify the list of certificates to be created and to return the list of certificates that were created.


Field Summary
protected  java.util.Vector m_certNameList
           
 
Constructor Summary
NPKI_CertificateNamesList()
          Constructor.
 
Method Summary
 void addCertificatename(com.novell.security.japi.pki.NPKI_CertificateName certName)
          Adds the specified certificate name to the list.
 com.novell.security.japi.pki.NPKI_CertificateName getCertName(int certNameNumber)
          Gets the certificate name at the specified index.
 int getNumberOfNames()
          Gets number of certificate names in the list.
 boolean removeCertName(com.novell.security.japi.pki.NPKI_CertificateName certName)
          Removes certificate name.
 void removeCertNameAt(int certNameNumber)
          Removes the certificate name at the specified index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_certNameList

protected java.util.Vector m_certNameList
Constructor Detail

NPKI_CertificateNamesList

public NPKI_CertificateNamesList()
                          throws java.io.IOException
Constructor.

Throws:
java.io.IOException - Throws an error if not successful.
Method Detail

addCertificatename

public void addCertificatename(com.novell.security.japi.pki.NPKI_CertificateName certName)
Adds the specified certificate name to the list.

Parameters:
certName - An object representing a certificate name.

getCertName

public com.novell.security.japi.pki.NPKI_CertificateName getCertName(int certNameNumber)
                                                              throws java.lang.ArrayIndexOutOfBoundsException
Gets the certificate name at the specified index.

Parameters:
certNameNumber - The index of the certificate name to be retrieved.
Returns:
NPKI_CertficiateName The object containing the certficate name.
Throws:
java.lang.ArrayIndexOutOfBoundsException

removeCertName

public boolean removeCertName(com.novell.security.japi.pki.NPKI_CertificateName certName)
Removes certificate name.

Parameters:
certName - The certificate name that is to be removed from the list.
Returns:
True on success.

removeCertNameAt

public void removeCertNameAt(int certNameNumber)
                      throws java.lang.ArrayIndexOutOfBoundsException
Removes the certificate name at the specified index.

Parameters:
certNameNumber - Index of the certificate name to be removed.
Throws:
java.lang.ArrayIndexOutOfBoundsException

getNumberOfNames

public int getNumberOfNames()
Gets number of certificate names in the list.

Returns:
Number of certificate names.