Click or drag to resize

DefaultVerificationPolicy Class

Recommended default policy for verifying KSI signatures. When verifying a signature at first it is verified against given document hash and publications file. If suitable publication is not found in publications file then the KSI signature is extended (if extending is allowed). If extending is not allowed or not yet possible then key based verification is done.
Inheritance Hierarchy

Namespace:  Guardtime.KSI.Signature.Verification.Policy
Assembly:  ksi-net-api (in ksi-net-api.dll) Version: 3.11.534.0 (3.11.534.0)
Syntax
public class DefaultVerificationPolicy : VerificationPolicy

The DefaultVerificationPolicy type exposes the following members.

Constructors
  NameDescription
Public methodDefaultVerificationPolicy
Create default verification policy.
Top
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetRuleName
Get rule name.
(Inherited from VerificationRule.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodNextRule
Get next rule based on verification result.
(Inherited from VerificationRule.)
Public methodOnFailure
Set next verification rule on failure.
(Inherited from VerificationRule.)
Public methodOnNa
Set next verification rule on na status.
(Inherited from VerificationRule.)
Public methodOnSuccess
Set next verification rule on success.
(Inherited from VerificationRule.)
Public methodToString (Inherited from Object.)
Public methodVerify(IVerificationContext)
Verify KSI signature with given context and policy. Following properties could be set in the context: - KSI signature: signature to be verified (mandatory) - Document hash (optional) - Document hash level (optional) - Publications file (mandatory) - IsExtendingAllowed: set true if extending should be allowed - KSI service (optional: needed when IsExtendingAllowed is set true)
(Overrides VerificationPolicyVerify(IVerificationContext).)
Public methodVerify(IKsiSignature, DataHash, IPublicationsFile)
Verify given KSI signature. At first the signature is verified against given document hash and publications file. If suitable publication is not found in publications file then key based verification is done.
Public methodVerify(IKsiSignature, DataHash, IKsiService)
Verify given KSI signature. At first the signature is verified against given document hash and publications file. Publications file is downloaded using given KSI service. If suitable publication is not found in publications file then the KSI signature is extended. If extending is not yet possible then key based verification is done.
Top
Fields
  NameDescription
Protected fieldFirstRule
First rule to verify.
(Inherited from VerificationPolicy.)
Top
See Also