SignDoc SDK (.NET without exceptions)
5.0.0
|
Parameters for verifying a certificate chain. More...
Public Member Functions | |
SignDocVerificationParameters () | |
Constructor. More... | |
~SignDocVerificationParameters () | |
Destructor. More... | |
!SignDocVerificationParameters () | |
Finalizer. More... | |
SignDocVerificationParameters | clone () |
Clone this object. More... | |
void | setForUpdateDSS () |
Set suitable values for using this object with SignDocDocument.updateDSS() and SignDocDocument.updateDSS2(). More... | |
void | setString (out ReturnCode aReturnCode, string aName, string aValue) |
Set a string parameter. More... | |
void | setInteger (out ReturnCode aReturnCode, string aName, int aValue) |
Set an integer parameter. More... | |
void | setBlob (out ReturnCode aReturnCode, string aName, byte[] aValue) |
Set a blob parameter. More... | |
string | getErrorMessage () |
Get an error message for the last function call. More... | |
bool | equals (SignDocVerificationParameters aOther) |
Parameters for verifying a certificate chain.
Use getErrorMessage() to get more information after a function call failed.
If you use null instead of a SignDocVerificationParameters object, the following default values will be used (those are identical to the default values for a freshly created SignDocVerificationParameters object):
However, for SignDocDocument.updateDSS() and SignDocDocument.updateDSS2(), the following default values will be used if null is passed (those are identical to the values set by setForUpdateDSS()):
To make the signature maximally meaningful, verification parameters for SignDocDocument.addSignature() should include VerificationFlags.CheckRevocation in integer parameter "VerificationFlags".
If integer parameter "CertificateChainVerificationPolicy" is CertificateChainVerificationPolicy.DontVerify, integer parameter "CertificateRevocationVerificationPolicy" must be CertificateRevocationVerificationPolicy.DontCheck.
Destructor.
Finalizer.
SignDocVerificationParameters clone | ( | ) |
Clone this object.
bool equals | ( | SignDocVerificationParameters | aOther | ) |
string getErrorMessage | ( | ) |
Get an error message for the last function call.
void setBlob | ( | out ReturnCode | aReturnCode, |
string | aName, | ||
byte[] | aValue | ||
) |
Set a blob parameter.
Available blob parameters are:
[out] | aReturnCode | The return code, ReturnCode.OK if successful, ReturnCode.UnknownParameter if aName is not the name of a blob parameter, ReturnCode.InvalidValue if aValue is invalid. |
[in] | aName | The name of the parameter (case-sensitive). |
[in] | aValue | The value. |
void setForUpdateDSS | ( | ) |
Set suitable values for using this object with SignDocDocument.updateDSS() and SignDocDocument.updateDSS2().
See SignDocVerificationParameters for the values set by this function.
void setInteger | ( | out ReturnCode | aReturnCode, |
string | aName, | ||
int | aValue | ||
) |
Set an integer parameter.
Available integer parameters are:
[out] | aReturnCode | The return code, ReturnCode.OK if successful, ReturnCode.UnknownParameter if aName is not the name of an integer parameter, ReturnCode.InvalidValue if aValue is invalid. |
[in] | aName | The name of the parameter (case-sensitive). |
[in] | aValue | The value of the parameter. |
void setString | ( | out ReturnCode | aReturnCode, |
string | aName, | ||
string | aValue | ||
) |
Set a string parameter.
Available string parameters are:
[out] | aReturnCode | The return code, ReturnCode.OK if successful, ReturnCode.UnknownParameter if aName is not the name of a string parameter, ReturnCode.InvalidValue if aValue is invalid. |
[in] | aName | The name of the parameter (case-sensitive). |
[in] | aValue | The value of the parameter. |