Package eu.europa.esig.dss.policy
Class EtsiValidationPolicy
java.lang.Object
eu.europa.esig.dss.policy.EtsiValidationPolicy
- All Implemented Interfaces:
ValidationPolicy
public class EtsiValidationPolicy extends Object implements ValidationPolicy
This class encapsulates the constraint file that controls the policy to be used during the validation process. It
adds the functions to direct access to the
file data. It is the implementation of the ETSI 102853 standard.
-
Constructor Summary
Constructors Constructor Description EtsiValidationPolicy(ConstraintsParameters policy)Default constructor -
Method Summary
Modifier and Type Method Description MultiValuesConstraintgetAcceptedContainerTypesConstraint()Returns AcceptedContainerTypes constraint if present in the policy, null otherwiseMultiValuesConstraintgetAcceptedMimeTypeContentsConstraint()Returns AcceptedMimeTypeContents constraint if present in the policy, null otherwiseMultiValuesConstraintgetAcceptedZipCommentsConstraint()Returns AcceptedZipComments constraint if present in the policy, null otherwiseDategetAlgorithmExpirationDate(String algorithm, Context context, SubContext subContext)This function returns the algorithm expiration date extracted from the 'constraint.xml' file.LevelConstraintgetAllFilesSignedConstraint()Returns AllFilesSigned constraint if present in the policy, null otherwiseLevelConstraintgetAllSigningCertificateDigestValuesMatchConstraint(Context context)Indicates if all signing certificate reference digests match the signing certificateLevelConstraintgetBestSignatureTimeBeforeExpirationDateOfSigningCertificateConstraint()This constraint checks if the certificate is not expired on best-signature-timeLevelConstraintgetCertificateAuthorityInfoAccessPresentConstraint(Context context, SubContext subContext)Returns CertificateAuthorityInfoAccessPresent constraint if present in the policy, null otherwiseMultiValuesConstraintgetCertificateCommonNameConstraint(Context context, SubContext subContext)Returns CertificateCommonName constraint if present in the policy, null otherwiseMultiValuesConstraintgetCertificateCountryConstraint(Context context, SubContext subContext)Returns CertificateCountry constraint if present in the policy, null otherwiseCryptographicConstraintgetCertificateCryptographicConstraint(Context context, SubContext subContext)This method creates theSignatureCryptographicConstraintcorresponding to the context parameter.MultiValuesConstraintgetCertificateExtendedKeyUsageConstraint(Context context, SubContext subContext)Returns certificate extended key usage constraintMultiValuesConstraintgetCertificateGivenNameConstraint(Context context, SubContext subContext)Returns CertificateGivenName constraint if present in the policy, null otherwiseLevelConstraintgetCertificateIssuedToLegalPersonConstraint(Context context, SubContext subContext)Indicates if the end user certificate used in validating the signature is issued to a legal person.LevelConstraintgetCertificateIssuedToNaturalPersonConstraint(Context context, SubContext subContext)Returns CertificateIssuedToNaturalPerson constraint if present in the policy, null otherwiseMultiValuesConstraintgetCertificateKeyUsageConstraint(Context context, SubContext subContext)Returns certificate key usage constraintLevelConstraintgetCertificateNotExpiredConstraint(Context context, SubContext subContext)Returns certificate's not expired constraintLevelConstraintgetCertificateNotOnHoldConstraint(Context context, SubContext subContext)Returns certificate's not onHold constraintLevelConstraintgetCertificateNotRevokedConstraint(Context context, SubContext subContext)Returns certificate's not revoked constraintLevelConstraintgetCertificateNotSelfSignedConstraint(Context context, SubContext subContext)Returns certificate's not self-signed constraintMultiValuesConstraintgetCertificateOrganizationNameConstraint(Context context, SubContext subContext)Returns CertificateOrganizationName constraint if present in the policy, null otherwiseMultiValuesConstraintgetCertificateOrganizationUnitConstraint(Context context, SubContext subContext)Returns CertificateOrganizationUnit constraint if present in the policy, null otherwiseMultiValuesConstraintgetCertificatePolicyIdsConstraint(Context context, SubContext subContext)Returns CertificatePolicyIds constraint if present in the policy, null otherwiseMultiValuesConstraintgetCertificatePseudonymConstraint(Context context, SubContext subContext)Returns CertificatePseudonym constraint if present in the policy, null otherwiseLevelConstraintgetCertificatePseudoUsageConstraint(Context context, SubContext subContext)Returns CertificatePseudoUsage constraint if present in the policy, null otherwiseMultiValuesConstraintgetCertificateQCStatementIdsConstraint(Context context, SubContext subContext)Returns CertificateQCStatementIds constraint if present in the policy, null otherwiseLevelConstraintgetCertificateQualificationConstraint(Context context, SubContext subContext)Indicates if the end user certificate is qualified.LevelConstraintgetCertificateRevocationFreshnessConstraint(Context context, SubContext subContext)Returns revocation data's freshness constraintLevelConstraintgetCertificateRevocationInfoAccessPresentConstraint(Context context, SubContext subContext)Returns CertificateRevocationInfoAccessPresent constraint if present in the policy, null otherwiseLevelConstraintgetCertificateSelfSignedConstraint(Context context, SubContext subContext)Returns certificate's self-signed constraintLevelConstraintgetCertificateSerialNumberConstraint(Context context, SubContext subContext)Returns CertificateSerialNumber constraint if present in the policy, null otherwiseLevelConstraintgetCertificateSignatureConstraint(Context context, SubContext subContext)Returns certificate's signature constraintLevelConstraintgetCertificateSupportedByQSCDConstraint(Context context, SubContext subContext)Indicates if the end user certificate used in validating the signature is mandated to be supported by a secure signature creation device (QSCD).MultiValuesConstraintgetCertificateSurnameConstraint(Context context, SubContext subContext)Returns CertificateSurname constraint if present in the policy, null otherwiseMultiValuesConstraintgetCertifiedRolesConstraint(Context context)Return the mandated signer role.MultiValuesConstraintgetClaimedRoleConstraint(Context context)Indicates if the unsigned property: claimed-role should be checked.MultiValuesConstraintgetCommitmentTypeIndicationConstraint(Context context)Indicates if the signed property: commitment-type-indication should be checked.ContainerConstraintsgetContainerConstraints()Returns the constraint used for ASiC Container validationValueConstraintgetContentHintsConstraint(Context context)Indicates if the signed property: content-hints should be checked.ValueConstraintgetContentIdentifierConstraint(Context context)Indicates if the signed property: content-identifier should be checked.LevelConstraintgetContentTimestampConstraint(Context context)Indicates if the signed property: content-time-stamp should be checked.ValueConstraintgetContentTypeConstraint(Context context)Indicates if the signed property: content-type should be checked.LevelConstraintgetCounterSignatureConstraint(Context context)Returns CounterSignature constraint if present in the policy, null otherwiseSignatureConstraintsgetCounterSignatureConstraints()Returns the constraint used for Counter Signature validationCryptographicConstraintgetCryptographic()Returns the common constraint used for cryptographic validationCryptographicConstraintgetDefaultCryptographicConstraint()Gets the global cryptographic constraintsEIDASgetEIDASConstraints()Returns the constraint used for qualification validationLevelConstraintgetFullScopeConstraint()Returns FullScope constraint if present in the policy, null otherwiseLevelConstraintgetManifestEntryObjectExistenceConstraint(Context context)Indicates if the manifested document is foundLevelConstraintgetManifestFilePresentConstraint()Returns ManifestFilePresent constraint if present in the policy, null otherwiseLevelConstraintgetMessageDigestOrSignedPropertiesConstraint(Context context)Indicates if the signed property: message-digest (for CAdES) or SignedProperties (for XAdES) should be checked.LevelConstraintgetMimeTypeFilePresentConstraint()Returns MimeTypeFilePresent constraint if present in the policy, null otherwiseLevelConstraintgetOCSPResponseCertHashMatchConstraint()The method returns OCSPCertHashMatch constraintLevelConstraintgetOCSPResponseCertHashPresentConstraint()The method returns OCSPCertHashPresent constraintLevelConstraintgetPdfAnnotationOverlapConstraint(Context context)Indicates if a PDF annotation overlapping check should be proceeded.LevelConstraintgetPdfPageDifferenceConstraint(Context context)Indicates if a PDF page difference check should be proceeded.LevelConstraintgetPdfVisualDifferenceConstraint(Context context)Indicates if a PDF visual difference check should be proceeded.StringgetPolicyDescription()Returns the policy description.StringgetPolicyName()Returns the name of the policy.LevelConstraintgetProspectiveCertificateChainConstraint(Context context)This constraint requests the presence of the trust anchor in the certificate chain.LevelConstraintgetReferenceDataExistenceConstraint(Context context)Indicates if the referenced data is foundLevelConstraintgetReferenceDataIntactConstraint(Context context)Indicates if the referenced data is intactLevelConstraintgetReferencesToAllCertificateChainPresentConstraint(Context context)Indicates if the whole certificate chain is covered by the Signing Certificate attribute.RevocationConstraintsgetRevocationConstraints()Returns the constraint used for Revocation validationLevelConstraintgetRevocationDataAvailableConstraint(Context context, SubContext subContext)Returns revocation data available constraintLevelConstraintgetRevocationDataNextUpdatePresentConstraint(Context context, SubContext subContext)Returns revocation data's nextUpdate present constraintTimeConstraintgetRevocationFreshnessConstraint()Returns RevocationFreshness constraint if present in the policy, null otherwiseLevelConstraintgetRevocationTimeAgainstBestSignatureTimeConstraint()Returns RevocationTimeAgainstBestSignatureTime constraint if present in the policy, null otherwiseLevelConstraintgetSelfIssuedOCSPConstraint()The method returns SelfIssuedOCSP constraintSignatureConstraintsgetSignatureConstraints()Returns the constraint used for Signature validationCryptographicConstraintgetSignatureCryptographicConstraint(Context context)This method creates theSignatureCryptographicConstraintcorresponding to the context parameter.LevelConstraintgetSignatureDuplicatedConstraint(Context context)Indicates if the signature is not ambiguousMultiValuesConstraintgetSignatureFormatConstraint(Context context)Returns SignatureFormat constraint if present in the policy, null otherwiseLevelConstraintgetSignatureIntactConstraint(Context context)Indicates if the signature is intactMultiValuesConstraintgetSignaturePolicyConstraint(Context context)Indicates if the signature policy should be checked.LevelConstraintgetSignaturePolicyIdentifiedConstraint(Context context)Indicates if the signature policy validation should be processed.LevelConstraintgetSignaturePolicyPolicyHashValid(Context context)Indicates if digest present in a SignaturePolicyIdentifier shall match to the extracted policy contentLevelConstraintgetSignaturePolicyStorePresentConstraint(Context context)Indicates if a SignaturePolicyStore unsigned attribute, containing a used policy binaries, presence shall be checkedLevelConstraintgetSignedFilesPresentConstraint()Returns SignedFilesPresent constraint if present in the policy, null otherwiseLevelConstraintgetSignerInformationStoreConstraint(Context context)This constraint checks if only one SignerInfo is present into a SignerInformationStore NOTE: applicable only for PAdESLevelConstraintgetSignerLocationConstraint(Context context)Indicates if the signed property: signer-location should be checked.LevelConstraintgetSigningCertificateAttributePresentConstraint(Context context)Indicates if the signing certificate attribute is presentLevelConstraintgetSigningCertificateDigestValueMatchConstraint(Context context)Indicates if the signing certificate reference's digest value matchesLevelConstraintgetSigningCertificateDigestValuePresentConstraint(Context context)Indicates if the signing certificate reference's digest value is presentLevelConstraintgetSigningCertificateIssuerSerialMatchConstraint(Context context)Indicates if the signing certificate reference's issuer serial matchesLevelConstraintgetSigningCertificateRecognitionConstraint(Context context)Indicates if the end user certificate used in validating the signature is issued to a natural person.LevelConstraintgetSigningCertificateRefersCertificateChainConstraint(Context context)Indicates if the Signing Certificate attribute should be checked against the certificate chain.LevelConstraintgetSigningTimeConstraint(Context context)Indicates if the signed property: signing-time should be checked.LevelConstraintgetStructuralValidationConstraint(Context context)Indicates if the structural validation should be checked.LevelConstraintgetTimestampCoherenceConstraint()This constraint checks if the timestamp order is coherentTimestampConstraintsgetTimestampConstraints()Returns the constraint used for Timestamp validationTimeConstraintgetTimestampDelayConstraint()Returns TimestampDelay constraint if present in the policy, null otherwiseTimeConstraintgetTLFreshnessConstraint()Returns TLFreshness constraint if present in the policy, null otherwiseLevelConstraintgetTLNotExpiredConstraint()Returns TLNotExpired constraint if present in the policy, null otherwiseValueConstraintgetTLVersionConstraint()Returns TLVersion constraint if present in the policy, null otherwiseLevelConstraintgetTLWellSignedConstraint()Returns TLWellSigned constraint if present in the policy, null otherwiseMultiValuesConstraintgetTrustedServiceStatusConstraint(Context context)Returns trusted service status constraintMultiValuesConstraintgetTrustedServiceTypeIdentifierConstraint(Context context)Returns trusted service type identifier constraintLevelConstraintgetUnicitySigningCertificateAttributeConstraint(Context context)Indicates if the signing certificate is not ambiguously determinesLevelConstraintgetUnknownStatusConstraint()The method returns UnknownStatus constraintModelgetValidationModel()Returns the used validation model (default is SHELL).LevelConstraintgetZipCommentPresentConstraint()Returns ZipCommentPresent constraint if present in the policy, null otherwisebooleanisEIDASConstraintPresent()Returns if EIDAS constraints present (qualification check shall be performed)
-
Constructor Details
-
EtsiValidationPolicy
Default constructor- Parameters:
policy-ConstraintsParameters
-
-
Method Details
-
getAlgorithmExpirationDate
Description copied from interface:ValidationPolicyThis function returns the algorithm expiration date extracted from the 'constraint.xml' file. If the TAG AlgoExpirationDate is not present within the constraintsnullis returned.- Specified by:
getAlgorithmExpirationDatein interfaceValidationPolicy- Parameters:
algorithm- algorithm (SHA1, SHA256, RSA2048...) to be checkedcontext-ContextsubContext-SubContext- Returns:
- expiration date or null
-
getSignaturePolicyConstraint
Description copied from interface:ValidationPolicyIndicates if the signature policy should be checked. If AcceptablePolicies element is absent within the constraint file then null is returned, otherwise the list of identifiers is initialised.- Specified by:
getSignaturePolicyConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif SigningTime element is present in the constraint file, null otherwise.
-
getSignaturePolicyIdentifiedConstraint
Description copied from interface:ValidationPolicyIndicates if the signature policy validation should be processed. If SignaturePolicyIdentifier found, but not relevant SignaturePolicy is retrieved, the check fails.- Specified by:
getSignaturePolicyIdentifiedConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif SignaturePolicy shall be identified
-
getSignaturePolicyStorePresentConstraint
Description copied from interface:ValidationPolicyIndicates if a SignaturePolicyStore unsigned attribute, containing a used policy binaries, presence shall be checked- Specified by:
getSignaturePolicyStorePresentConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif SignaturePolicyStore presence shall be checked
-
getSignaturePolicyPolicyHashValid
Description copied from interface:ValidationPolicyIndicates if digest present in a SignaturePolicyIdentifier shall match to the extracted policy content- Specified by:
getSignaturePolicyPolicyHashValidin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif SignaturePolicyIdentifier digest shall match
-
getSignatureFormatConstraint
Description copied from interface:ValidationPolicyReturns SignatureFormat constraint if present in the policy, null otherwise- Specified by:
getSignatureFormatConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
MultiValuesConstraintif SignatureFormat element is present in the constraint file, null otherwise.
-
getSignerInformationStoreConstraint
Description copied from interface:ValidationPolicyThis constraint checks if only one SignerInfo is present into a SignerInformationStore NOTE: applicable only for PAdES- Specified by:
getSignerInformationStoreConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif SignerInformationStore element for a given context element is present in the constraint file, null otherwise.
-
getPdfPageDifferenceConstraint
Description copied from interface:ValidationPolicyIndicates if a PDF page difference check should be proceeded. If PdfPageDifference element is absent within the constraint file then null is returned.- Specified by:
getPdfPageDifferenceConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif PdfPageDifference element is present in the constraint file, null otherwise.
-
getPdfAnnotationOverlapConstraint
Description copied from interface:ValidationPolicyIndicates if a PDF annotation overlapping check should be proceeded. If PdfAnnotationOverlap element is absent within the constraint file then null is returned.- Specified by:
getPdfAnnotationOverlapConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif PdfAnnotationOverlap element is present in the constraint file, null otherwise.
-
getPdfVisualDifferenceConstraint
Description copied from interface:ValidationPolicyIndicates if a PDF visual difference check should be proceeded. If PdfVisualDifference element is absent within the constraint file then null is returned.- Specified by:
getPdfVisualDifferenceConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif PdfVisualDifference element is present in the constraint file, null otherwise.
-
getStructuralValidationConstraint
Description copied from interface:ValidationPolicyIndicates if the structural validation should be checked. If StructuralValidation element is absent within the constraint file then null is returned.- Specified by:
getStructuralValidationConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif StructuralValidation element is present in the constraint file, null otherwise.
-
getSigningCertificateRefersCertificateChainConstraint
Description copied from interface:ValidationPolicyIndicates if the Signing Certificate attribute should be checked against the certificate chain. If SigningCertificateRefersCertificateChain element is absent within the constraint file then null is returned.- Specified by:
getSigningCertificateRefersCertificateChainConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif SigningCertificateRefersCertificateChain element is present in the constraint file, null otherwise.
-
getReferencesToAllCertificateChainPresentConstraint
Description copied from interface:ValidationPolicyIndicates if the whole certificate chain is covered by the Signing Certificate attribute. If ReferencesToAllCertificateChainPresent element is absent within the constraint file then null is returned.- Specified by:
getReferencesToAllCertificateChainPresentConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif ReferencesToAllCertificateChainPresent element is present in the constraint file, null otherwise.
-
getSigningTimeConstraint
Description copied from interface:ValidationPolicyIndicates if the signed property: signing-time should be checked. If SigningTime element is absent within the constraint file then null is returned.- Specified by:
getSigningTimeConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif SigningTime element is present in the constraint file, null otherwise.
-
getContentTypeConstraint
Description copied from interface:ValidationPolicyIndicates if the signed property: content-type should be checked. If ContentType element is absent within the constraint file then null is returned.- Specified by:
getContentTypeConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
ValueConstraintif ContentType element is present in the constraint file, null otherwise.
-
getCounterSignatureConstraint
Description copied from interface:ValidationPolicyReturns CounterSignature constraint if present in the policy, null otherwise- Specified by:
getCounterSignatureConstraintin interfaceValidationPolicy- Parameters:
context-ContextDiagnosticDataFacade- Returns:
LevelConstraintif CounterSignature element is present in the constraint file, null otherwise.
-
getContentHintsConstraint
Description copied from interface:ValidationPolicyIndicates if the signed property: content-hints should be checked. If ContentHints element is absent within the constraint file then null is returned.- Specified by:
getContentHintsConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
ValueConstraintif ContentHints element is present in the constraint file, null otherwise.
-
getContentIdentifierConstraint
Description copied from interface:ValidationPolicyIndicates if the signed property: content-identifier should be checked. If ContentIdentifier element is absent within the constraint file then null is returned.- Specified by:
getContentIdentifierConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
ValueConstraintif ContentIdentifier element is present in the constraint file, null otherwise.
-
getMessageDigestOrSignedPropertiesConstraint
Description copied from interface:ValidationPolicyIndicates if the signed property: message-digest (for CAdES) or SignedProperties (for XAdES) should be checked. If the relative element is absent within the constraint file then null is returned.- Specified by:
getMessageDigestOrSignedPropertiesConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif message-digests/SignedProperties element is present in the constraint file, null otherwise.
-
getCommitmentTypeIndicationConstraint
Description copied from interface:ValidationPolicyIndicates if the signed property: commitment-type-indication should be checked. If CommitmentTypeIndication element is absent within the constraint file then null is returned, otherwise the list of identifiers is initialised.- Specified by:
getCommitmentTypeIndicationConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
MultiValuesConstraintif CommitmentTypeIndication element is present in the constraint file, null otherwise.
-
getSignerLocationConstraint
Description copied from interface:ValidationPolicyIndicates if the signed property: signer-location should be checked. If SignerLocation element is absent within the constraint file then null is returned.- Specified by:
getSignerLocationConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif SignerLocation element is present in the constraint file, null otherwise.
-
getClaimedRoleConstraint
Description copied from interface:ValidationPolicyIndicates if the unsigned property: claimed-role should be checked. If ClaimedRoles element is absent within the constraint file then null is returned.- Specified by:
getClaimedRoleConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
MultiValuesConstraintif ClaimedRoles element is present in the constraint file, null otherwise.
-
getCertifiedRolesConstraint
Description copied from interface:ValidationPolicyReturn the mandated signer role.- Specified by:
getCertifiedRolesConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
MultiValuesConstraint
-
getPolicyName
Description copied from interface:ValidationPolicyReturns the name of the policy.- Specified by:
getPolicyNamein interfaceValidationPolicy- Returns:
String
-
getPolicyDescription
Description copied from interface:ValidationPolicyReturns the policy description.- Specified by:
getPolicyDescriptionin interfaceValidationPolicy- Returns:
String
-
getSignatureCryptographicConstraint
Description copied from interface:ValidationPolicyThis method creates theSignatureCryptographicConstraintcorresponding to the context parameter. If AcceptableEncryptionAlgo is not present in the constraint file the null is returned.- Specified by:
getSignatureCryptographicConstraintin interfaceValidationPolicy- Parameters:
context- The context of the signature cryptographic constraints: MainSignature, Timestamp, Revocation- Returns:
SignatureCryptographicConstraintif AcceptableEncryptionAlgo for a given context element is present in the constraint file, null otherwise.
-
getCertificateCryptographicConstraint
public CryptographicConstraint getCertificateCryptographicConstraint(Context context, SubContext subContext)Description copied from interface:ValidationPolicyThis method creates theSignatureCryptographicConstraintcorresponding to the context parameter. If AcceptableEncryptionAlgo is not present in the constraint file the null is returned.- Specified by:
getCertificateCryptographicConstraintin interfaceValidationPolicy- Parameters:
context- The context of the signature cryptographic constraints: MainSignature, Timestamp, RevocationsubContext- the sub context of the signature cryptographic constraints: EMPTY (signature itself), SigningCertificate, CACertificate- Returns:
SignatureCryptographicConstraintif AcceptableEncryptionAlgo for a given context element is present in the constraint file, null otherwise.
-
getDefaultCryptographicConstraint
Gets the global cryptographic constraints- Returns:
CryptographicConstraint
-
getCertificateKeyUsageConstraint
public MultiValuesConstraint getCertificateKeyUsageConstraint(Context context, SubContext subContext)Description copied from interface:ValidationPolicyReturns certificate key usage constraint- Specified by:
getCertificateKeyUsageConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
LevelConstraintif key-usage for a given context element is present in the constraint file, null otherwise.
-
getCertificateExtendedKeyUsageConstraint
public MultiValuesConstraint getCertificateExtendedKeyUsageConstraint(Context context, SubContext subContext)Description copied from interface:ValidationPolicyReturns certificate extended key usage constraint- Specified by:
getCertificateExtendedKeyUsageConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
LevelConstraintif extended key-usage for a given context element is present in the constraint file, null otherwise.
-
getCertificateSurnameConstraint
public MultiValuesConstraint getCertificateSurnameConstraint(Context context, SubContext subContext)Description copied from interface:ValidationPolicyReturns CertificateSurname constraint if present in the policy, null otherwise- Specified by:
getCertificateSurnameConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
MultiValuesConstraintif CertificateSurname element is present in the constraint file, null otherwise.
-
getCertificateGivenNameConstraint
public MultiValuesConstraint getCertificateGivenNameConstraint(Context context, SubContext subContext)Description copied from interface:ValidationPolicyReturns CertificateGivenName constraint if present in the policy, null otherwise- Specified by:
getCertificateGivenNameConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
MultiValuesConstraintif CertificateGivenName element is present in the constraint file, null otherwise.
-
getCertificateCommonNameConstraint
public MultiValuesConstraint getCertificateCommonNameConstraint(Context context, SubContext subContext)Description copied from interface:ValidationPolicyReturns CertificateCommonName constraint if present in the policy, null otherwise- Specified by:
getCertificateCommonNameConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
MultiValuesConstraintif CertificateCommonName element is present in the constraint file, null otherwise.
-
getCertificatePseudonymConstraint
public MultiValuesConstraint getCertificatePseudonymConstraint(Context context, SubContext subContext)Description copied from interface:ValidationPolicyReturns CertificatePseudonym constraint if present in the policy, null otherwise- Specified by:
getCertificatePseudonymConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
MultiValuesConstraintif CertificatePseudonym element is present in the constraint file, null otherwise.
-
getCertificateCountryConstraint
public MultiValuesConstraint getCertificateCountryConstraint(Context context, SubContext subContext)Description copied from interface:ValidationPolicyReturns CertificateCountry constraint if present in the policy, null otherwise- Specified by:
getCertificateCountryConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
MultiValuesConstraintif CertificateCountry element is present in the constraint file, null otherwise.
-
getCertificateOrganizationNameConstraint
public MultiValuesConstraint getCertificateOrganizationNameConstraint(Context context, SubContext subContext)Description copied from interface:ValidationPolicyReturns CertificateOrganizationName constraint if present in the policy, null otherwise- Specified by:
getCertificateOrganizationNameConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
MultiValuesConstraintif CertificateOrganizationName element is present in the constraint file, null otherwise.
-
getCertificateOrganizationUnitConstraint
public MultiValuesConstraint getCertificateOrganizationUnitConstraint(Context context, SubContext subContext)Description copied from interface:ValidationPolicyReturns CertificateOrganizationUnit constraint if present in the policy, null otherwise- Specified by:
getCertificateOrganizationUnitConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
MultiValuesConstraintif CertificateOrganizationUnit element is present in the constraint file, null otherwise.
-
getCertificatePseudoUsageConstraint
Description copied from interface:ValidationPolicyReturns CertificatePseudoUsage constraint if present in the policy, null otherwise- Specified by:
getCertificatePseudoUsageConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
LevelConstraintif CertificatePseudoUsage element is present in the constraint file, null otherwise.
-
getCertificateSerialNumberConstraint
public LevelConstraint getCertificateSerialNumberConstraint(Context context, SubContext subContext)Description copied from interface:ValidationPolicyReturns CertificateSerialNumber constraint if present in the policy, null otherwise- Specified by:
getCertificateSerialNumberConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
LevelConstraintif CertificateSerialNumber element is present in the constraint file, null otherwise.
-
getCertificateNotExpiredConstraint
Description copied from interface:ValidationPolicyReturns certificate's not expired constraint- Specified by:
getCertificateNotExpiredConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
LevelConstraintif Expiration for a given context element is present in the constraint file, null otherwise.
-
getProspectiveCertificateChainConstraint
Description copied from interface:ValidationPolicyThis constraint requests the presence of the trust anchor in the certificate chain.- Specified by:
getProspectiveCertificateChainConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif ProspectiveCertificateChain element for a given context element is present in the constraint file, null otherwise.
-
getCertificateAuthorityInfoAccessPresentConstraint
public LevelConstraint getCertificateAuthorityInfoAccessPresentConstraint(Context context, SubContext subContext)Description copied from interface:ValidationPolicyReturns CertificateAuthorityInfoAccessPresent constraint if present in the policy, null otherwise- Specified by:
getCertificateAuthorityInfoAccessPresentConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
LevelConstraintif CertificateAuthorityInfoAccessPresent element is present in the constraint file, null otherwise.
-
getCertificateRevocationInfoAccessPresentConstraint
public LevelConstraint getCertificateRevocationInfoAccessPresentConstraint(Context context, SubContext subContext)Description copied from interface:ValidationPolicyReturns CertificateRevocationInfoAccessPresent constraint if present in the policy, null otherwise- Specified by:
getCertificateRevocationInfoAccessPresentConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
LevelConstraintif CertificateRevocationInfoAccessPresent element is present in the constraint file, null otherwise.
-
getCertificateSignatureConstraint
Description copied from interface:ValidationPolicyReturns certificate's signature constraint- Specified by:
getCertificateSignatureConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
LevelConstraintif Signature for a given context element is present in the constraint file, null otherwise.
-
getUnknownStatusConstraint
Description copied from interface:ValidationPolicyThe method returns UnknownStatus constraint- Specified by:
getUnknownStatusConstraintin interfaceValidationPolicy- Returns:
LevelConstraint
-
getOCSPResponseCertHashPresentConstraint
Description copied from interface:ValidationPolicyThe method returns OCSPCertHashPresent constraint- Specified by:
getOCSPResponseCertHashPresentConstraintin interfaceValidationPolicy- Returns:
LevelConstraint
-
getOCSPResponseCertHashMatchConstraint
Description copied from interface:ValidationPolicyThe method returns OCSPCertHashMatch constraint- Specified by:
getOCSPResponseCertHashMatchConstraintin interfaceValidationPolicy- Returns:
LevelConstraint
-
getSelfIssuedOCSPConstraint
Description copied from interface:ValidationPolicyThe method returns SelfIssuedOCSP constraint- Specified by:
getSelfIssuedOCSPConstraintin interfaceValidationPolicy- Returns:
LevelConstraint
-
getRevocationDataAvailableConstraint
public LevelConstraint getRevocationDataAvailableConstraint(Context context, SubContext subContext)Description copied from interface:ValidationPolicyReturns revocation data available constraint- Specified by:
getRevocationDataAvailableConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
LevelConstraintif RevocationDataAvailable for a given context element is present in the constraint file, null otherwise.
-
getRevocationDataNextUpdatePresentConstraint
public LevelConstraint getRevocationDataNextUpdatePresentConstraint(Context context, SubContext subContext)Description copied from interface:ValidationPolicyReturns revocation data's nextUpdate present constraint- Specified by:
getRevocationDataNextUpdatePresentConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
LevelConstraintif RevocationDataNextUpdatePresent for a given context element is present in the constraint file, null otherwise.
-
getCertificateRevocationFreshnessConstraint
public LevelConstraint getCertificateRevocationFreshnessConstraint(Context context, SubContext subContext)Description copied from interface:ValidationPolicyReturns revocation data's freshness constraint- Specified by:
getCertificateRevocationFreshnessConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
LevelConstraintif RevocationFreshness for a given context element is present in the constraint file, null otherwise.
-
getCertificateNotRevokedConstraint
Description copied from interface:ValidationPolicyReturns certificate's not revoked constraint- Specified by:
getCertificateNotRevokedConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
LevelConstraintif Revoked for a given context element is present in the constraint file, null otherwise.
-
getCertificateNotOnHoldConstraint
Description copied from interface:ValidationPolicyReturns certificate's not onHold constraint- Specified by:
getCertificateNotOnHoldConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
LevelConstraintif OnHold for a given context element is present in the constraint file, null otherwise.
-
getCertificateNotSelfSignedConstraint
public LevelConstraint getCertificateNotSelfSignedConstraint(Context context, SubContext subContext)Description copied from interface:ValidationPolicyReturns certificate's not self-signed constraint- Specified by:
getCertificateNotSelfSignedConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
LevelConstraintif not self-signed for a given context element is present in the constraint file, null otherwise.
-
getCertificateSelfSignedConstraint
Description copied from interface:ValidationPolicyReturns certificate's self-signed constraint- Specified by:
getCertificateSelfSignedConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
LevelConstraintif self-signed for a given context element is present in the constraint file, null otherwise.
-
getTrustedServiceStatusConstraint
Description copied from interface:ValidationPolicyReturns trusted service status constraint- Specified by:
getTrustedServiceStatusConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif trusted service status for a given context element is present in the constraint file, null otherwise.
-
getTrustedServiceTypeIdentifierConstraint
Description copied from interface:ValidationPolicyReturns trusted service type identifier constraint- Specified by:
getTrustedServiceTypeIdentifierConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif trusted service type identifier for a given context element is present in the constraint file, null otherwise.
-
getCertificatePolicyIdsConstraint
public MultiValuesConstraint getCertificatePolicyIdsConstraint(Context context, SubContext subContext)Description copied from interface:ValidationPolicyReturns CertificatePolicyIds constraint if present in the policy, null otherwise- Specified by:
getCertificatePolicyIdsConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
MultiValuesConstraintif CertificatePolicyIds element is present in the constraint file, null otherwise.
-
getCertificateQCStatementIdsConstraint
public MultiValuesConstraint getCertificateQCStatementIdsConstraint(Context context, SubContext subContext)Description copied from interface:ValidationPolicyReturns CertificateQCStatementIds constraint if present in the policy, null otherwise- Specified by:
getCertificateQCStatementIdsConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
MultiValuesConstraintif CertificateQCStatementIds element is present in the constraint file, null otherwise.
-
getCertificateIssuedToNaturalPersonConstraint
public LevelConstraint getCertificateIssuedToNaturalPersonConstraint(Context context, SubContext subContext)Description copied from interface:ValidationPolicyReturns CertificateIssuedToNaturalPerson constraint if present in the policy, null otherwise- Specified by:
getCertificateIssuedToNaturalPersonConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
LevelConstraintif CertificateIssuedToNaturalPerson element is present in the constraint file, null otherwise.
-
getCertificateQualificationConstraint
public LevelConstraint getCertificateQualificationConstraint(Context context, SubContext subContext)Description copied from interface:ValidationPolicyIndicates if the end user certificate is qualified.- Specified by:
getCertificateQualificationConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
LevelConstraintif Qualification for a given context element is present in the constraint file, null otherwise.
-
getCertificateSupportedByQSCDConstraint
public LevelConstraint getCertificateSupportedByQSCDConstraint(Context context, SubContext subContext)Description copied from interface:ValidationPolicyIndicates if the end user certificate used in validating the signature is mandated to be supported by a secure signature creation device (QSCD).- Specified by:
getCertificateSupportedByQSCDConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
LevelConstraintif SupportedByQSCD for a given context element is present in the constraint file, null otherwise.
-
getCertificateIssuedToLegalPersonConstraint
public LevelConstraint getCertificateIssuedToLegalPersonConstraint(Context context, SubContext subContext)Description copied from interface:ValidationPolicyIndicates if the end user certificate used in validating the signature is issued to a legal person.- Specified by:
getCertificateIssuedToLegalPersonConstraintin interfaceValidationPolicy- Parameters:
context-ContextsubContext-SubContext- Returns:
LevelConstraintif IssuedToLegalPerson for a given context element is present in the constraint file, null otherwise.
-
getSigningCertificateRecognitionConstraint
Description copied from interface:ValidationPolicyIndicates if the end user certificate used in validating the signature is issued to a natural person.- Specified by:
getSigningCertificateRecognitionConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif Recognition for a given context element is present in the constraint file, null otherwise.
-
getSigningCertificateAttributePresentConstraint
Description copied from interface:ValidationPolicyIndicates if the signing certificate attribute is present- Specified by:
getSigningCertificateAttributePresentConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif SigningCertificateAttribute for a given context element is present in the constraint file, null otherwise.
-
getUnicitySigningCertificateAttributeConstraint
Description copied from interface:ValidationPolicyIndicates if the signing certificate is not ambiguously determines- Specified by:
getUnicitySigningCertificateAttributeConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif UnicitySigningCertificate for a given context element is present in the constraint file, null otherwise.
-
getSigningCertificateDigestValuePresentConstraint
Description copied from interface:ValidationPolicyIndicates if the signing certificate reference's digest value is present- Specified by:
getSigningCertificateDigestValuePresentConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif DigestValuePresent for a given context element is present in the constraint file, null otherwise.
-
getSigningCertificateDigestValueMatchConstraint
Description copied from interface:ValidationPolicyIndicates if the signing certificate reference's digest value matches- Specified by:
getSigningCertificateDigestValueMatchConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif DigestValueMatch for a given context element is present in the constraint file, null otherwise.
-
getAllSigningCertificateDigestValuesMatchConstraint
Description copied from interface:ValidationPolicyIndicates if all signing certificate reference digests match the signing certificate- Specified by:
getAllSigningCertificateDigestValuesMatchConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif AllCertDigestsMatch for a given context element is present in the constraint file, null otherwise.
-
getSigningCertificateIssuerSerialMatchConstraint
Description copied from interface:ValidationPolicyIndicates if the signing certificate reference's issuer serial matches- Specified by:
getSigningCertificateIssuerSerialMatchConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif IssuerSerialMatch for a given context element is present in the constraint file, null otherwise.
-
getReferenceDataExistenceConstraint
Description copied from interface:ValidationPolicyIndicates if the referenced data is found- Specified by:
getReferenceDataExistenceConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif ReferenceDataExistence for a given context element is present in the constraint file, null otherwise.
-
getReferenceDataIntactConstraint
Description copied from interface:ValidationPolicyIndicates if the referenced data is intact- Specified by:
getReferenceDataIntactConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif ReferenceDataIntact for a given context element is present in the constraint file, null otherwise.
-
getManifestEntryObjectExistenceConstraint
Description copied from interface:ValidationPolicyIndicates if the manifested document is found- Specified by:
getManifestEntryObjectExistenceConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif ManifestEntryObjectExistence for a given context element is present in the constraint file, null otherwise.
-
getSignatureIntactConstraint
Description copied from interface:ValidationPolicyIndicates if the signature is intact- Specified by:
getSignatureIntactConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
SignatureDataIntactif SignatureIntact for a given context element is present in the constraint file, null otherwise.
-
getSignatureDuplicatedConstraint
Description copied from interface:ValidationPolicyIndicates if the signature is not ambiguous- Specified by:
getSignatureDuplicatedConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
SignatureDuplicatedif SignatureDuplicated for a given context element is present in the constraint file, null otherwise.
-
getBestSignatureTimeBeforeExpirationDateOfSigningCertificateConstraint
Description copied from interface:ValidationPolicyThis constraint checks if the certificate is not expired on best-signature-time- Specified by:
getBestSignatureTimeBeforeExpirationDateOfSigningCertificateConstraintin interfaceValidationPolicy- Returns:
LevelConstraintif BestSignatureTimeBeforeExpirationDateOfSigningCertificate element is present in the constraint file, null otherwise.
-
getRevocationTimeAgainstBestSignatureTimeConstraint
Description copied from interface:ValidationPolicyReturns RevocationTimeAgainstBestSignatureTime constraint if present in the policy, null otherwise- Specified by:
getRevocationTimeAgainstBestSignatureTimeConstraintin interfaceValidationPolicy- Returns:
LevelConstraintif RevocationTimeAgainstBestSignatureTime element is present in the constraint file, null otherwise.
-
getTimestampCoherenceConstraint
Description copied from interface:ValidationPolicyThis constraint checks if the timestamp order is coherent- Specified by:
getTimestampCoherenceConstraintin interfaceValidationPolicy- Returns:
LevelConstraintif TimestampCoherence element is present in the constraint file, null otherwise.
-
getTimestampDelayConstraint
Description copied from interface:ValidationPolicyReturns TimestampDelay constraint if present in the policy, null otherwise- Specified by:
getTimestampDelayConstraintin interfaceValidationPolicy- Returns:
TimeConstraintif TimestampDelay element is present in the constraint file, null otherwise.
-
getRevocationFreshnessConstraint
Description copied from interface:ValidationPolicyReturns RevocationFreshness constraint if present in the policy, null otherwise- Specified by:
getRevocationFreshnessConstraintin interfaceValidationPolicy- Returns:
TimeConstraintif RevocationFreshness element is present in the constraint file, null otherwise.
-
getFullScopeConstraint
Description copied from interface:ValidationPolicyReturns FullScope constraint if present in the policy, null otherwise- Specified by:
getFullScopeConstraintin interfaceValidationPolicy- Returns:
LevelConstraintif FullScope element is present in the constraint file, null otherwise.
-
getContentTimestampConstraint
Description copied from interface:ValidationPolicyIndicates if the signed property: content-time-stamp should be checked. If ContentTimeStamp element is absent within the constraint file then null is returned.- Specified by:
getContentTimestampConstraintin interfaceValidationPolicy- Parameters:
context-Context- Returns:
LevelConstraintif ContentTimeStamp element is present in the constraint file, null otherwise.
-
getAcceptedContainerTypesConstraint
Description copied from interface:ValidationPolicyReturns AcceptedContainerTypes constraint if present in the policy, null otherwise- Specified by:
getAcceptedContainerTypesConstraintin interfaceValidationPolicy- Returns:
MultiValuesConstraintif AcceptedContainerTypes element is present in the constraint file, null otherwise.
-
getZipCommentPresentConstraint
Description copied from interface:ValidationPolicyReturns ZipCommentPresent constraint if present in the policy, null otherwise- Specified by:
getZipCommentPresentConstraintin interfaceValidationPolicy- Returns:
LevelConstraintif ZipCommentPresent element is present in the constraint file, null otherwise.
-
getAcceptedZipCommentsConstraint
Description copied from interface:ValidationPolicyReturns AcceptedZipComments constraint if present in the policy, null otherwise- Specified by:
getAcceptedZipCommentsConstraintin interfaceValidationPolicy- Returns:
MultiValuesConstraintif AcceptedZipComments element is present in the constraint file, null otherwise.
-
getMimeTypeFilePresentConstraint
Description copied from interface:ValidationPolicyReturns MimeTypeFilePresent constraint if present in the policy, null otherwise- Specified by:
getMimeTypeFilePresentConstraintin interfaceValidationPolicy- Returns:
LevelConstraintif MimeTypeFilePresent element is present in the constraint file, null otherwise.
-
getAcceptedMimeTypeContentsConstraint
Description copied from interface:ValidationPolicyReturns AcceptedMimeTypeContents constraint if present in the policy, null otherwise- Specified by:
getAcceptedMimeTypeContentsConstraintin interfaceValidationPolicy- Returns:
MultiValuesConstraintif AcceptedMimeTypeContents element is present in the constraint file, null otherwise.
-
getAllFilesSignedConstraint
Description copied from interface:ValidationPolicyReturns AllFilesSigned constraint if present in the policy, null otherwise- Specified by:
getAllFilesSignedConstraintin interfaceValidationPolicy- Returns:
LevelConstraintif AllFilesSigned element is present in the constraint file, null otherwise.
-
getManifestFilePresentConstraint
Description copied from interface:ValidationPolicyReturns ManifestFilePresent constraint if present in the policy, null otherwise- Specified by:
getManifestFilePresentConstraintin interfaceValidationPolicy- Returns:
LevelConstraintif ManifestFilePresent element is present in the constraint file, null otherwise.
-
getSignedFilesPresentConstraint
Description copied from interface:ValidationPolicyReturns SignedFilesPresent constraint if present in the policy, null otherwise- Specified by:
getSignedFilesPresentConstraintin interfaceValidationPolicy- Returns:
LevelConstraintif SignedFilesPresent element is present in the constraint file, null otherwise.
-
isEIDASConstraintPresent
public boolean isEIDASConstraintPresent()Description copied from interface:ValidationPolicyReturns if EIDAS constraints present (qualification check shall be performed)- Specified by:
isEIDASConstraintPresentin interfaceValidationPolicy- Returns:
- TRUE if EIDAS constraint present, FALSE otherwise
-
getTLFreshnessConstraint
Description copied from interface:ValidationPolicyReturns TLFreshness constraint if present in the policy, null otherwise- Specified by:
getTLFreshnessConstraintin interfaceValidationPolicy- Returns:
TimeConstraintif TLFreshness element is present in the constraint file, null otherwise.
-
getTLWellSignedConstraint
Description copied from interface:ValidationPolicyReturns TLWellSigned constraint if present in the policy, null otherwise- Specified by:
getTLWellSignedConstraintin interfaceValidationPolicy- Returns:
TimeConstraintif TLWellSigned element is present in the constraint file, null otherwise.
-
getTLNotExpiredConstraint
Description copied from interface:ValidationPolicyReturns TLNotExpired constraint if present in the policy, null otherwise- Specified by:
getTLNotExpiredConstraintin interfaceValidationPolicy- Returns:
TimeConstraintif TLNotExpired element is present in the constraint file, null otherwise.
-
getTLVersionConstraint
Description copied from interface:ValidationPolicyReturns TLVersion constraint if present in the policy, null otherwise- Specified by:
getTLVersionConstraintin interfaceValidationPolicy- Returns:
ValueConstraintif TLVersion element is present in the constraint file, null otherwise.
-
getValidationModel
Description copied from interface:ValidationPolicyReturns the used validation model (default is SHELL). Alternatives are CHAIN and HYBRID- Specified by:
getValidationModelin interfaceValidationPolicy- Returns:
- the validation model to be used
-
getContainerConstraints
Description copied from interface:ValidationPolicyReturns the constraint used for ASiC Container validation- Specified by:
getContainerConstraintsin interfaceValidationPolicy- Returns:
ContainerConstraints
-
getSignatureConstraints
Description copied from interface:ValidationPolicyReturns the constraint used for Signature validation- Specified by:
getSignatureConstraintsin interfaceValidationPolicy- Returns:
SignatureConstraints
-
getCounterSignatureConstraints
Description copied from interface:ValidationPolicyReturns the constraint used for Counter Signature validation- Specified by:
getCounterSignatureConstraintsin interfaceValidationPolicy- Returns:
SignatureConstraints
-
getTimestampConstraints
Description copied from interface:ValidationPolicyReturns the constraint used for Timestamp validation- Specified by:
getTimestampConstraintsin interfaceValidationPolicy- Returns:
TimestampConstraints
-
getRevocationConstraints
Description copied from interface:ValidationPolicyReturns the constraint used for Revocation validation- Specified by:
getRevocationConstraintsin interfaceValidationPolicy- Returns:
RevocationConstraints
-
getEIDASConstraints
Description copied from interface:ValidationPolicyReturns the constraint used for qualification validation- Specified by:
getEIDASConstraintsin interfaceValidationPolicy- Returns:
EIDAS
-
getCryptographic
Description copied from interface:ValidationPolicyReturns the common constraint used for cryptographic validation- Specified by:
getCryptographicin interfaceValidationPolicy- Returns:
CryptographicConstraint
-