|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.novell.security.japi.pki.NPKI_CertChain
Certificate chain for use by verifyCertChain
.
The certificates in the certificate chain need to be in order, leaf to root.
Constructor Summary | |
NPKI_CertChain()
Default Constructor. |
Method Summary | |
void |
addCertificate(com.novell.security.japi.pki.NPKI_Certificate cert)
Adds a certificate to the certificate chain. |
com.novell.security.japi.pki.NPKI_Certificate |
getCertificate(int certNum)
Retrieves the certificate in the chain at index certNum . |
int |
getNumberOfCertificates()
Gets number of certificates in certificate list. |
void |
removeCertAt(int certNum)
Removes a certificate from the speicified index. |
boolean |
removeCertificate(com.novell.security.japi.pki.NPKI_Certificate cert)
Removes a certificate from the certificate chain. |
int |
size()
Gets number of certificates in certificate list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NPKI_CertChain() throws java.io.IOException
java.io.IOException
- if an I/O exception occursMethod Detail |
public void addCertificate(com.novell.security.japi.pki.NPKI_Certificate cert)
cert
- the certificate to be added.public com.novell.security.japi.pki.NPKI_Certificate getCertificate(int certNum) throws java.lang.ArrayIndexOutOfBoundsException
certNum
.
certNum
- The index of the desired certificate.
certNum
.
java.lang.ArrayIndexOutOfBoundsException
- if certNum
is greater than the actual number of certificates in the list.public boolean removeCertificate(com.novell.security.japi.pki.NPKI_Certificate cert)
cert
- The certificate to be removed.
public void removeCertAt(int certNum) throws java.lang.ArrayIndexOutOfBoundsException
certNum
- The index of the certificate to be removed.
java.lang.ArrayIndexOutOfBoundsException
- if certNum
is
greater than the actual number of certificate in the list.public int getNumberOfCertificates()
public int size()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |