Class CAdESBaselineRequirementsChecker
java.lang.Object
eu.europa.esig.dss.spi.signature.BaselineRequirementsChecker<CAdESSignature>
eu.europa.esig.dss.cades.validation.CAdESBaselineRequirementsChecker
- Direct Known Subclasses:
CMSForPAdESBaselineRequirementsChecker
,PAdESBaselineRequirementsChecker
Performs checks according to EN 319 122-1 v1.1.1
"6.3 Requirements on components and services"
-
Field Summary
Fields inherited from class eu.europa.esig.dss.spi.signature.BaselineRequirementsChecker
offlineCertificateVerifier, signature
-
Constructor Summary
ModifierConstructorDescriptionprotected
CAdESBaselineRequirementsChecker
(CAdESSignature signature) Constructor is used to verify conformance of signature to Baseline-B levelCAdESBaselineRequirementsChecker
(CAdESSignature signature, CertificateVerifier offlineCertificateVerifier) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Checks if BASELINE-B requirements satisfy for a CMS signatureprotected boolean
This method verifies whether the signature contains some of the LT-/XL level attributesprotected SignatureForm
Returns the signature form corresponding to the signatureboolean
Checks if the signature has a corresponding BASELINE-B profileboolean
Checks if the signature has a corresponding BASELINE-LTA profileboolean
Checks if the signature has a corresponding BASELINE-LT profileboolean
Checks if the signature has a corresponding BASELINE-T profileboolean
Checks if the signature has a corresponding *AdES-A profileboolean
Checks if the signature has a corresponding *AdES-BES profileboolean
Checks if the signature has a corresponding *AdES-C profileboolean
Checks if the signature has a corresponding *AdES-EPES profileboolean
Checks if the signature has a corresponding *AdES-T profileboolean
Checks if the signature has a corresponding *AdES-XL profileboolean
Checks if the signature has a corresponding *AdES-X profileMethods inherited from class eu.europa.esig.dss.spi.signature.BaselineRequirementsChecker
containsSigningCertificate, getCertificateSourcesExceptLastArchiveTimestamp, getValidationContext, isSignaturePolicyIdentifierHashPresent, minimalLTARequirement, minimalLTRequirement, minimalTRequirement, signatureTimestampsCreatedBeforeSignCertExpiration
-
Constructor Details
-
CAdESBaselineRequirementsChecker
Constructor is used to verify conformance of signature to Baseline-B level- Parameters:
signature
-CAdESSignature
-
CAdESBaselineRequirementsChecker
public CAdESBaselineRequirementsChecker(CAdESSignature signature, CertificateVerifier offlineCertificateVerifier) Default constructor- Parameters:
signature
-CAdESSignature
offlineCertificateVerifier
-CertificateVerifier
-
-
Method Details
-
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()Description copied from class:BaselineRequirementsChecker
Checks if the signature has a corresponding BASELINE-B profile- Specified by:
hasBaselineBProfile
in classBaselineRequirementsChecker<CAdESSignature>
- Returns:
- TRUE if the signature has a BASELINE-B profile, FALSE otherwise
-
hasBaselineTProfile
public boolean hasBaselineTProfile()Description copied from class:BaselineRequirementsChecker
Checks if the signature has a corresponding BASELINE-T profile- Specified by:
hasBaselineTProfile
in classBaselineRequirementsChecker<CAdESSignature>
- Returns:
- TRUE if the signature has a BASELINE-T profile, FALSE otherwise
-
hasBaselineLTProfile
public boolean hasBaselineLTProfile()Description copied from class:BaselineRequirementsChecker
Checks if the signature has a corresponding BASELINE-LT profile- Specified by:
hasBaselineLTProfile
in classBaselineRequirementsChecker<CAdESSignature>
- Returns:
- TRUE if the signature has a BASELINE-LT profile, FALSE otherwise
-
containsLTLevelCertificates
protected boolean containsLTLevelCertificates()Description copied from class:BaselineRequirementsChecker
This method verifies whether the signature contains some of the LT-/XL level attributes- Overrides:
containsLTLevelCertificates
in classBaselineRequirementsChecker<CAdESSignature>
- Returns:
- TRUE if the signature contains LT-/XL- level attributes, FALSE otherwise
-
hasBaselineLTAProfile
public boolean hasBaselineLTAProfile()Description copied from class:BaselineRequirementsChecker
Checks if the signature has a corresponding BASELINE-LTA profile- Specified by:
hasBaselineLTAProfile
in classBaselineRequirementsChecker<CAdESSignature>
- Returns:
- TRUE if the signature has a BASELINE-LTA profile, FALSE otherwise
-
hasExtendedBESProfile
public boolean hasExtendedBESProfile()Description copied from class:BaselineRequirementsChecker
Checks if the signature has a corresponding *AdES-BES profile- Overrides:
hasExtendedBESProfile
in classBaselineRequirementsChecker<CAdESSignature>
- Returns:
- TRUE if the signature has a *AdES-BES profile, FALSE otherwise
-
hasExtendedEPESProfile
public boolean hasExtendedEPESProfile()Description copied from class:BaselineRequirementsChecker
Checks if the signature has a corresponding *AdES-EPES profile- Overrides:
hasExtendedEPESProfile
in classBaselineRequirementsChecker<CAdESSignature>
- Returns:
- TRUE if the signature has a *AdES-EPES profile, FALSE otherwise
-
hasExtendedTProfile
public boolean hasExtendedTProfile()Description copied from class:BaselineRequirementsChecker
Checks if the signature has a corresponding *AdES-T profile- Overrides:
hasExtendedTProfile
in classBaselineRequirementsChecker<CAdESSignature>
- Returns:
- TRUE if the signature has a *AdES-T profile, FALSE otherwise
-
hasExtendedCProfile
public boolean hasExtendedCProfile()Description copied from class:BaselineRequirementsChecker
Checks if the signature has a corresponding *AdES-C profile- Overrides:
hasExtendedCProfile
in classBaselineRequirementsChecker<CAdESSignature>
- Returns:
- TRUE if the signature has a *AdES-C profile, FALSE otherwise
-
hasExtendedXProfile
public boolean hasExtendedXProfile()Description copied from class:BaselineRequirementsChecker
Checks if the signature has a corresponding *AdES-X profile- Overrides:
hasExtendedXProfile
in classBaselineRequirementsChecker<CAdESSignature>
- Returns:
- TRUE if the signature has a *AdES-X profile, FALSE otherwise
-
hasExtendedXLProfile
public boolean hasExtendedXLProfile()Description copied from class:BaselineRequirementsChecker
Checks if the signature has a corresponding *AdES-XL profile- Overrides:
hasExtendedXLProfile
in classBaselineRequirementsChecker<CAdESSignature>
- Returns:
- TRUE if the signature has a *AdES-XL profile, FALSE otherwise
-
hasExtendedAProfile
public boolean hasExtendedAProfile()Description copied from class:BaselineRequirementsChecker
Checks if the signature has a corresponding *AdES-A profile- Overrides:
hasExtendedAProfile
in classBaselineRequirementsChecker<CAdESSignature>
- Returns:
- TRUE if the signature has a *AdES-A profile, FALSE otherwise
-