be.cardon.nativecall.cryptoapi
Class StructCERT_CONTEXT

java.lang.Object
  extended by be.cardon.nativecall.NativeObject
      extended by be.cardon.nativecall.NativeStructure
          extended by be.cardon.nativecall.cryptoapi.StructCERT_CONTEXT

public class StructCERT_CONTEXT
extends NativeStructure

Wrapper for structure CERT_CONTEXT.


Field Summary
static java.lang.Integer[] elementsSize
           
static int lengthInBytes
           
 
Fields inherited from class be.cardon.nativecall.NativeObject
BYTE_SIZE, INT_SIZE, LLC
 
Constructor Summary
StructCERT_CONTEXT()
          Creates a new instance of the structure, new native structure.
StructCERT_CONTEXT(int address)
          Creates a new instance of the structure, existing native structure.
 
Method Summary
 NativeInt cbCertEncoded()
          Returns the size (in bytes) of the encoded certificate at address pbCertEncoded.
 byte[] CertEncoded()
          Returns the encoded certificate.
 StructCERT_INFO CertInfo()
          Returns the StructCERT_INFO wrapper object associated with the CERT_INFO structure of this certificate.
 NativeInt dwCertEncodingType()
          Returns the CryptoAPI certificate encoding type.
 NativeInt hCertStore()
          Returns the handle of the certificate store
 NativeInt pbCertEncoded()
          Returns the address of the encoded certificate. pbCertEncoded gives the size in bytes.
 NativeInt pCertInfo()
          Returns the address of the native structure CERT_INFO of this certificate.
 
Methods inherited from class be.cardon.nativecall.NativeStructure
checkStructSize, getAddressOfElement, getNativeObjectElement, getRelativeAddress, initStruct
 
Methods inherited from class be.cardon.nativecall.NativeObject
finalize, getAddress, getLength, isReadOnly, setReadOnly
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elementsSize

public static final java.lang.Integer[] elementsSize

lengthInBytes

public static final int lengthInBytes
See Also:
Constant Field Values
Constructor Detail

StructCERT_CONTEXT

public StructCERT_CONTEXT()
                   throws NativeCallException
Creates a new instance of the structure, new native structure.

Throws:
NativeCallException

StructCERT_CONTEXT

public StructCERT_CONTEXT(int address)
                   throws NativeCallException
Creates a new instance of the structure, existing native structure.

Throws:
NativeCallException
Method Detail

dwCertEncodingType

public NativeInt dwCertEncodingType()
                             throws NativeCallException
Returns the CryptoAPI certificate encoding type.

Throws:
NativeCallException

pbCertEncoded

public NativeInt pbCertEncoded()
                        throws NativeCallException
Returns the address of the encoded certificate. pbCertEncoded gives the size in bytes. Please use the higher level function CertEncoded().

Throws:
NativeCallException

cbCertEncoded

public NativeInt cbCertEncoded()
                        throws NativeCallException
Returns the size (in bytes) of the encoded certificate at address pbCertEncoded. Please use the higher level function CertEncoded().

Throws:
NativeCallException

pCertInfo

public NativeInt pCertInfo()
                    throws NativeCallException
Returns the address of the native structure CERT_INFO of this certificate. Please use the higher level function CertInfo.

Throws:
NativeCallException

hCertStore

public NativeInt hCertStore()
                     throws NativeCallException
Returns the handle of the certificate store

Throws:
NativeCallException

CertEncoded

public byte[] CertEncoded()
                   throws NativeCallException
Returns the encoded certificate.

Throws:
NativeCallException

CertInfo

public StructCERT_INFO CertInfo()
                         throws NativeCallException
Returns the StructCERT_INFO wrapper object associated with the CERT_INFO structure of this certificate.

Throws:
NativeCallException