iText 8.0.5 API
iText.Signatures.Validation.V1.Context.ValidationContext Class Reference

Validation context class, which encapsulates specific context values, related to validation process. More...

Public Member Functions

  ValidationContext (ValidatorContext validatorContext, CertificateSource certificateSource, TimeBasedContext timeBasedContext)
  Create ValidationContext instance using provided context values. More...
 
virtual iText.Signatures.Validation.V1.Context.ValidationContext  GetPreviousValidationContext ()
  Get previous validation context instance, from which this instance was created. More...
 
virtual CertificateSource  GetCertificateSource ()
  Get specific certificate source context value. More...
 
virtual iText.Signatures.Validation.V1.Context.ValidationContext  SetCertificateSource (CertificateSource certificateSource)
  Create new ValidationContext instance with the provided certificate source context value. More...
 
virtual TimeBasedContext  GetTimeBasedContext ()
  Get specific time-based context value. More...
 
virtual iText.Signatures.Validation.V1.Context.ValidationContext  SetTimeBasedContext (TimeBasedContext timeBasedContext)
  Create new ValidationContext instance with the provided certificate source context value. More...
 
virtual ValidatorContext  GetValidatorContext ()
  Get specific validator context value. More...
 
virtual iText.Signatures.Validation.V1.Context.ValidationContext  SetValidatorContext (ValidatorContext validatorContext)
  Create new ValidationContext instance with the provided certificate source context value. More...
 
override String  ToString ()
  Return string representation of this ValidationContext. More...
 
override bool  Equals (Object o)
  Check if the provided object is equal to this one. More...
 
override int  GetHashCode ()
  Return a hash code value for this validation context. More...
 

Static Public Member Functions

static bool  CheckIfContextChainContainsCertificateSource (iText.Signatures.Validation.V1.Context.ValidationContext context, CertificateSource source)
  Check if validation contexts chain contains specific CertificateSource value. More...
 

Detailed Description

Validation context class, which encapsulates specific context values, related to validation process.

Constructor & Destructor Documentation

◆ ValidationContext()

iText.Signatures.Validation.V1.Context.ValidationContext.ValidationContext ( ValidatorContext  validatorContext,
CertificateSource  certificateSource,
TimeBasedContext  timeBasedContext 
)
inline

Create ValidationContext instance using provided context values.

Parameters
validatorContext

ValidatorContext value

Parameters
certificateSource

CertificateSource value

Parameters
timeBasedContext

TimeBasedContext value

Member Function Documentation

◆ CheckIfContextChainContainsCertificateSource()

static bool iText.Signatures.Validation.V1.Context.ValidationContext.CheckIfContextChainContainsCertificateSource ( iText.Signatures.Validation.V1.Context.ValidationContext  context,
CertificateSource  source 
)
inlinestatic

Check if validation contexts chain contains specific CertificateSource value.

Parameters
context

ValidationContext instance to start the check from

Parameters
source

CertificateSource value to check

Returns

true if validation contexts chain contains provided certificate source, false otherwise

◆ Equals()

override bool iText.Signatures.Validation.V1.Context.ValidationContext.Equals ( Object  o )
inline

Check if the provided object is equal to this one.

Check if the provided object is equal to this one. Previous validation context field is not taken into account during this comparison.

Parameters
o the reference object with which to compare
Returns

true if provided object is equal to this one, false otherwise

◆ GetCertificateSource()

virtual CertificateSource iText.Signatures.Validation.V1.Context.ValidationContext.GetCertificateSource ( )
inlinevirtual

Get specific certificate source context value.

Returns

CertificateSource context value

◆ GetHashCode()

override int iText.Signatures.Validation.V1.Context.ValidationContext.GetHashCode ( )
inline

Return a hash code value for this validation context.

Return a hash code value for this validation context. Previous validation context field is not taken into account during hash code calculation.

Returns
a hash code value for this validation context

◆ GetPreviousValidationContext()

virtual iText.Signatures.Validation.V1.Context.ValidationContext iText.Signatures.Validation.V1.Context.ValidationContext.GetPreviousValidationContext ( )
inlinevirtual

Get previous validation context instance, from which this instance was created.

Returns
previous ValidatorContext instance

◆ GetTimeBasedContext()

virtual TimeBasedContext iText.Signatures.Validation.V1.Context.ValidationContext.GetTimeBasedContext ( )
inlinevirtual

Get specific time-based context value.

Returns

TimeBasedContext context value

◆ GetValidatorContext()

virtual ValidatorContext iText.Signatures.Validation.V1.Context.ValidationContext.GetValidatorContext ( )
inlinevirtual

Get specific validator context value.

Returns

ValidatorContext context value

◆ SetCertificateSource()

virtual iText.Signatures.Validation.V1.Context.ValidationContext iText.Signatures.Validation.V1.Context.ValidationContext.SetCertificateSource ( CertificateSource  certificateSource )
inlinevirtual

Create new ValidationContext instance with the provided certificate source context value.

Parameters
certificateSource

CertificateSource value

Returns
new ValidationContext instance

◆ SetTimeBasedContext()

virtual iText.Signatures.Validation.V1.Context.ValidationContext iText.Signatures.Validation.V1.Context.ValidationContext.SetTimeBasedContext ( TimeBasedContext  timeBasedContext )
inlinevirtual

Create new ValidationContext instance with the provided certificate source context value.

Parameters
timeBasedContext

TimeBasedContext value

Returns
new ValidationContext instance

◆ SetValidatorContext()

virtual iText.Signatures.Validation.V1.Context.ValidationContext iText.Signatures.Validation.V1.Context.ValidationContext.SetValidatorContext ( ValidatorContext  validatorContext )
inlinevirtual

Create new ValidationContext instance with the provided certificate source context value.

Parameters
validatorContext

ValidatorContext value

Returns
new ValidationContext instance

◆ ToString()

override String iText.Signatures.Validation.V1.Context.ValidationContext.ToString ( )
inline

Return string representation of this ValidationContext.

Return string representation of this ValidationContext. Previous validation context is not a part of this representation.

Returns
a string representation of the ValidationContext