Class CAdESBaselineRequirementsChecker
java.lang.Object
eu.europa.esig.dss.cades.validation.CAdESBaselineRequirementsChecker
Performs checks according to EN 319 122-1 v1.1.1
"6.3 Requirements on components and services"
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final eu.europa.esig.dss.spi.validation.CertificateVerifierprotected final CAdESSignature -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCAdESBaselineRequirementsChecker(CAdESSignature signature) Constructor is used to verify conformance of signature to Baseline-B levelCAdESBaselineRequirementsChecker(CAdESSignature signature, eu.europa.esig.dss.spi.validation.CertificateVerifier offlineCertificateVerifier) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanChecks if BASELINE-B requirements satisfy for a CMS signatureprotected booleanThis method verifies whether CMS is conformant to the E-BES profileprotected booleanprotected booleancontainsSigningCertificate(Collection<eu.europa.esig.dss.model.x509.CertificateToken> arg0) protected eu.europa.esig.dss.enumerations.SignatureFormReturns the signature form corresponding to the signatureprotected eu.europa.esig.dss.spi.x509.ListCertificateSourceprotected eu.europa.esig.dss.spi.validation.ValidationContextbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanprotected booleanbooleanbooleanprotected booleanprotected boolean
-
Field Details
-
signature
-
offlineCertificateVerifier
protected final eu.europa.esig.dss.spi.validation.CertificateVerifier offlineCertificateVerifier
-
-
Constructor Details
-
CAdESBaselineRequirementsChecker
Constructor is used to verify conformance of signature to Baseline-B level- Parameters:
signature-CAdESSignature
-
CAdESBaselineRequirementsChecker
public CAdESBaselineRequirementsChecker(CAdESSignature signature, eu.europa.esig.dss.spi.validation.CertificateVerifier offlineCertificateVerifier) Default constructor- Parameters:
signature-CAdESSignatureofflineCertificateVerifier-CertificateVerifier
-
-
Method Details
-
getBaselineSignatureForm
protected eu.europa.esig.dss.enumerations.SignatureForm getBaselineSignatureForm()Returns the signature form corresponding to the signature- Returns:
SignatureForm
-
cmsBaselineBRequirements
protected boolean cmsBaselineBRequirements()Checks if BASELINE-B requirements satisfy for a CMS signature- Returns:
- TRUE if the CMS signature meet the BASELINE-B requirements, FALSE otherwise
-
hasBaselineBProfile
public boolean hasBaselineBProfile() -
hasBaselineTProfile
public boolean hasBaselineTProfile() -
hasBaselineLTProfile
public boolean hasBaselineLTProfile() -
containsLTLevelCertificates
protected boolean containsLTLevelCertificates() -
hasBaselineLTAProfile
public boolean hasBaselineLTAProfile() -
hasExtendedBESProfile
public boolean hasExtendedBESProfile() -
cmsExtendedBESRequirements
protected boolean cmsExtendedBESRequirements()This method verifies whether CMS is conformant to the E-BES profile- Returns:
- TRUE if the CMS signature is conformant to the E-BES profile, FALSE otherwise
-
hasExtendedEPESProfile
public boolean hasExtendedEPESProfile() -
hasExtendedTProfile
public boolean hasExtendedTProfile() -
hasExtendedCProfile
public boolean hasExtendedCProfile() -
hasExtendedXProfile
public boolean hasExtendedXProfile() -
hasExtendedXLProfile
public boolean hasExtendedXLProfile() -
hasExtendedAProfile
public boolean hasExtendedAProfile() -
hasExtendedERSProfile
public boolean hasExtendedERSProfile() -
signatureTimestampsCreatedBeforeSignCertExpiration
protected boolean signatureTimestampsCreatedBeforeSignCertExpiration() -
minimalTRequirement
protected boolean minimalTRequirement() -
minimalLTRequirement
public boolean minimalLTRequirement() -
getCertificateSourcesExceptLastArchiveTimestamp
protected eu.europa.esig.dss.spi.x509.ListCertificateSource getCertificateSourcesExceptLastArchiveTimestamp() -
getValidationContext
protected eu.europa.esig.dss.spi.validation.ValidationContext getValidationContext() -
minimalLTARequirement
public boolean minimalLTARequirement() -
containsSigningCertificate
protected boolean containsSigningCertificate(Collection<eu.europa.esig.dss.model.x509.CertificateToken> arg0) -
isSignaturePolicyIdentifierHashPresent
protected boolean isSignaturePolicyIdentifierHashPresent()
-