com.novell.security.japi.pki
Class NPKI_Certificate

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

public class NPKI_Certificate
extends java.lang.Object

NPKI_Certificate is used to hold a certificate that is part of a chain that is passed to verifyCertChain.


Constructor Summary
NPKI_Certificate()
          Default constructor.
NPKI_Certificate(byte[] cert)
          Constructor.
 
Method Summary
 void addCRL(com.novell.security.japi.pki.NPKI_crlList crl)
          Add a CRL list to validate the current certificate.
 byte[] getCert()
          Get the current X.509 DER encoded certifcate.
 int getCertLen()
          Get the length in bytes of the current certificate.
 com.novell.security.japi.pki.NPKI_crlList getCRLList()
          Get the CRLs that are used to validate the current certificate.
 int getFlags()
          Get the flags that describe how the current certificate is to be verified.
 void setCertificate(byte[] cert)
          Set the current certificate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NPKI_Certificate

public NPKI_Certificate()
Default constructor.


NPKI_Certificate

public NPKI_Certificate(byte[] cert)
Constructor.

Parameters:
cert - An X.509 DER encoded certificate.
Method Detail

setCertificate

public void setCertificate(byte[] cert)
Set the current certificate.

Parameters:
cert - An X.509 DER encoded certificate.

addCRL

public void addCRL(com.novell.security.japi.pki.NPKI_crlList crl)
Add a CRL list to validate the current certificate. (Not currently used.)

Parameters:
crl - Certificate Revocation List

getCert

public byte[] getCert()
Get the current X.509 DER encoded certifcate.

Returns:
An X.509 DER encoded certificate.

getCertLen

public int getCertLen()
Get the length in bytes of the current certificate.

Returns:
Length of the certificate in bytes

getCRLList

public com.novell.security.japi.pki.NPKI_crlList getCRLList()
Get the CRLs that are used to validate the current certificate.

Returns:
Certificate revocation list for the current certificate.

getFlags

public int getFlags()
Get the flags that describe how the current certificate is to be verified.

Returns:
Certificate verification flags