Class CAdESSignatureScopeFinder
java.lang.Object
eu.europa.esig.dss.spi.validation.scope.AbstractSignatureScopeFinder
eu.europa.esig.dss.cades.validation.scope.CAdESSignatureScopeFinder
- All Implemented Interfaces:
SignatureScopeFinder<CAdESSignature>
public class CAdESSignatureScopeFinder
extends AbstractSignatureScopeFinder
implements SignatureScopeFinder<CAdESSignature>
Finds
SignatureScope
s for a CAdES signature-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindSignatureScope
(CAdESSignature cadesSignature) Returns a list ofSignatureScope
s from a signatureprotected DSSDocument
getOriginalDocument
(CAdESSignature cadesSignature) Returns original document for the given CAdES signatureprotected DSSDocument
getReferencedDocument
(ManifestEntry manifestEntry, List<DSSDocument> detachedDocuments) This method returns a document references from themanifestEntry
protected List
<SignatureScope> getSignatureScopeFromOriginalDocument
(CAdESSignature cadesSignature, DSSDocument originalDocument) Returns a list ofSignatureScope
s from the signed documentprotected List
<SignatureScope> Gets a list ofSignatureScope
s from aReferenceValidation
protected boolean
isASiCSArchive
(AdvancedSignature advancedSignature) Checks if the given signature represents an ASiC-S containerMethods inherited from class eu.europa.esig.dss.spi.validation.scope.AbstractSignatureScopeFinder
createDigestDocument, createInMemoryDocument, isASiCEArchive
-
Constructor Details
-
CAdESSignatureScopeFinder
public CAdESSignatureScopeFinder()Default constructor
-
-
Method Details
-
findSignatureScope
Description copied from interface:SignatureScopeFinder
Returns a list ofSignatureScope
s from a signature- Specified by:
findSignatureScope
in interfaceSignatureScopeFinder<CAdESSignature>
- Parameters:
cadesSignature
-AdvancedSignature
to get signatureScopes for- Returns:
- a list of
SignatureScope
s
-
getSignatureScopeFromOriginalDocument
protected List<SignatureScope> getSignatureScopeFromOriginalDocument(CAdESSignature cadesSignature, DSSDocument originalDocument) Returns a list ofSignatureScope
s from the signed document- Parameters:
cadesSignature
-CAdESSignature
originalDocument
-DSSDocument
- Returns:
- a list of
SignatureScope
s
-
getSignatureScopeFromReferenceValidation
protected List<SignatureScope> getSignatureScopeFromReferenceValidation(ReferenceValidation reference) Gets a list ofSignatureScope
s from aReferenceValidation
- Parameters:
reference
-ReferenceValidation
to get SignatureScope from- Returns:
- a list of
SignatureScope
s
-
getOriginalDocument
Returns original document for the given CAdES signature- Parameters:
cadesSignature
-CAdESSignature
to get original document for- Returns:
DSSDocument
original document
-
isASiCSArchive
Description copied from class:AbstractSignatureScopeFinder
Checks if the given signature represents an ASiC-S container- Overrides:
isASiCSArchive
in classAbstractSignatureScopeFinder
- Parameters:
advancedSignature
-AdvancedSignature
to check- Returns:
- TRUE if the signature is ASiC-S, FALSE otherwise
-
getReferencedDocument
protected DSSDocument getReferencedDocument(ManifestEntry manifestEntry, List<DSSDocument> detachedDocuments) This method returns a document references from themanifestEntry
- Parameters:
manifestEntry
-ManifestEntry
to get document fordetachedDocuments
- a list ofDSSDocument
s representing the ASiC's content- Returns:
DSSDocument
-