be.cardon.nativecall.cryptoapi
Class StructCERT_CHAIN_PARA

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

public class StructCERT_CHAIN_PARA
extends NativeStructure

Wrapper for structure CERT_CHAIN_PARA.

typedef struct _CERT_CHAIN_PARA {
  DWORD cbSize;
  CERT_USAGE_MATCH RequestedUsage;
  CERT_USAGE_MATCH RequestedIssuancePolicy; }
  DWORD dwUrlRetrievalTimeout;              } extra
  BOOL fCheckRevocationFreshnessTime;       } fields
  DWORD dwRevocationFreshnessTime;          }
} CERT_CHAIN_PARA, 
PCERT_CHAIN_PARA;
Note : the CERT_CHAIN_PARA_HAS_EXTRA_FIELDS has been defined in the JNI native code. So the extra fields are always available.


Field Summary
static java.lang.Integer[] elementsSizeLong
           
static java.lang.Integer[] elementsSizeShort
           
static int lengthInBytesLong
           
static int lengthInBytesShort
           
 
Fields inherited from class be.cardon.nativecall.NativeObject
BYTE_SIZE, INT_SIZE, LLC
 
Method Summary
 NativeInt CbSize()
          Returns the size of this structure in bytes (read only).
 NativeInt dwRevocationFreshnessTime()
          Largest CurrentTime, in seconds, minus the CRL's ThisUpdate of all elements checked.
 NativeInt dwUrlRetrievalTimeout()
          Time before the revocation checking times out in milliseconds.
 NativeBoolean fCheckRevocationFreshnessTime()
          When this flag is TRUE, an attempt is made to retrieve a new CRL if ThisUpdate is greater than or equal to Current Time minus dwRevocationFreshnessTime.
 boolean hasExtraFields()
           
static StructCERT_CHAIN_PARA newInstance(boolean extraFields)
          Creates a new instance of this class, new native object.
static StructCERT_CHAIN_PARA newInstance(int address)
          Creates a new instance of this class, existing native object.
 StructCERT_USAGE_MATCH RequestedIssuancePolicy()
          Returns the CERT_USAGE_MATCH RequestedIssuancePolicy structure.
 StructCERT_USAGE_MATCH RequestedUsage()
          Returns the CERT_USAGE_MATCH RequestedUsage structure.
 
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

elementsSizeLong

public static final java.lang.Integer[] elementsSizeLong

elementsSizeShort

public static final java.lang.Integer[] elementsSizeShort

lengthInBytesLong

public static final int lengthInBytesLong
See Also:
Constant Field Values

lengthInBytesShort

public static final int lengthInBytesShort
See Also:
Constant Field Values
Method Detail

newInstance

public static StructCERT_CHAIN_PARA newInstance(boolean extraFields)
                                         throws NativeCallException
Creates a new instance of this class, new native object.

Throws:
NativeCallException

newInstance

public static StructCERT_CHAIN_PARA newInstance(int address)
                                         throws NativeCallException
Creates a new instance of this class, existing native object. The native object may be a version with or without extra fields.

Throws:
NativeCallException

hasExtraFields

public boolean hasExtraFields()

CbSize

public NativeInt CbSize()
                 throws NativeCallException
Returns the size of this structure in bytes (read only).

Throws:
NativeCallException

RequestedUsage

public StructCERT_USAGE_MATCH RequestedUsage()
                                      throws NativeCallException
Returns the CERT_USAGE_MATCH RequestedUsage structure.

Throws:
NativeCallException

RequestedIssuancePolicy

public StructCERT_USAGE_MATCH RequestedIssuancePolicy()
                                               throws NativeCallException
Returns the CERT_USAGE_MATCH RequestedIssuancePolicy structure.

Throws:
NativeCallException - if the structure has no extra fields.

dwUrlRetrievalTimeout

public NativeInt dwUrlRetrievalTimeout()
                                throws NativeCallException
Time before the revocation checking times out in milliseconds.

Throws:
NativeCallException - if the structure has no extra fields.

fCheckRevocationFreshnessTime

public NativeBoolean fCheckRevocationFreshnessTime()
                                            throws NativeCallException
When this flag is TRUE, an attempt is made to retrieve a new CRL if ThisUpdate is greater than or equal to Current Time minus dwRevocationFreshnessTime. If this flag is not set, the CRL's NextUpdate time is used.

Throws:
NativeCallException - if the structure has no extra fields.

dwRevocationFreshnessTime

public NativeInt dwRevocationFreshnessTime()
                                    throws NativeCallException
Largest CurrentTime, in seconds, minus the CRL's ThisUpdate of all elements checked.

Throws:
NativeCallException - if the structure has no extra fields.