be.cardon.cryptoapi
Class CAPICertificateChain

java.lang.Object
  extended by be.cardon.cryptoapi.CAPICertificateChain

public class CAPICertificateChain
extends java.lang.Object

Simple certificate chain.


Constructor Summary
CAPICertificateChain(CAPICertificate cert)
          Creates a new instance of CAPICertificateChain, using standard chain engine, and without any criterion (see MSDN documentation).
 
Method Summary
 void finalize()
           
 CAPICertificate[] getCertificateChain()
          returns a first certificate chain.
 StructCERT_CHAIN_CONTEXT GetNativeStructChainContext()
          Returns the native chain context CERT_CHAIN_CONTEXT structure
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CAPICertificateChain

public CAPICertificateChain(CAPICertificate cert)
                     throws CryptoAPIException
Creates a new instance of CAPICertificateChain, using standard chain engine, and without any criterion (see MSDN documentation).

Throws:
CryptoAPIException
Method Detail

GetNativeStructChainContext

public StructCERT_CHAIN_CONTEXT GetNativeStructChainContext()
Returns the native chain context CERT_CHAIN_CONTEXT structure


getCertificateChain

public CAPICertificate[] getCertificateChain()
                                      throws CryptoAPIException
returns a first certificate chain. The first certificate is the end certificate, and the last certificate is the root certificate. Returns null if no certificates are found.

Throws:
CryptoAPIException

finalize

public void finalize()
              throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable