public interface

QualifyingPropertyVerifier

xades4j.verification.QualifyingPropertyVerifier<TData extends xades4j.properties.data.PropertyDataObject>

Class Overview

Verifies a property accordingly to the XAdES verification rules. The verifier is passed the unmarshalled property data object (structure already verified) and should verify the XAdES rules and create the high-level QualifyingProperty.

Summary

Public Methods
abstract QualifyingProperty verify(TData propData, QualifyingPropertyVerificationContext ctx)
Verifies the property data and return the corresponding 'high-level' property instance.

Public Methods

public abstract QualifyingProperty verify (TData propData, QualifyingPropertyVerificationContext ctx)

Verifies the property data and return the corresponding 'high-level' property instance. In case of failure, an exception should be thrown. This is done in order to prevent a failure to be undetected by erroneous code. Furthermore, the data structures resulting for the verification process become simpler.

Parameters
propData the property data
ctx the context with data for validation
Returns
  • the verified QualifyingProperty (never null)
Throws
InvalidPropertyException (or subclasses) if the property validation fails