be.cardon.nativecall.cryptoapi
Class StructCERT_USAGE_MATCH

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

public class StructCERT_USAGE_MATCH
extends NativeStructure

Wrapper for structure CERT_USAGE_MATCH.

 typedef struct _CERT_USAGE_MATCH {  
 WORD dwType;  
 CERT_ENHKEY_USAGE Usage;
 } CERT_USAGE_MATCH, 
PCERT_USAGE_MATCH;


Field Summary
 
Fields inherited from class be.cardon.nativecall.NativeObject
BYTE_SIZE, INT_SIZE, LLC
 
Constructor Summary
StructCERT_USAGE_MATCH()
          Creates a new instance of the structure, new native structure.
StructCERT_USAGE_MATCH(int address)
          Creates a new instance of the structure, existing native structure.
 
Method Summary
 NativeInt dwType()
          Determines the kind of issuer matching to be done.
 StructCERT_ENHKEY_USAGE Usage()
          Returns CERT_ENHKEY_USAGE Usage.
 
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
 

Constructor Detail

StructCERT_USAGE_MATCH

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

Throws:
NativeCallException

StructCERT_USAGE_MATCH

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

Throws:
NativeCallException
Method Detail

dwType

public NativeInt dwType()
                 throws NativeCallException
Determines the kind of issuer matching to be done. In AND logic, the certificate must meet all criteria. In OR logic, the certificate must meet at least one of the criteria. The following codes are defined to determine the logic used in the match.

Throws:
NativeCallException

Usage

public StructCERT_ENHKEY_USAGE Usage()
                              throws NativeCallException
Returns CERT_ENHKEY_USAGE Usage.

Throws:
NativeCallException