Class CAdESSignatureScopeFinder
java.lang.Object
eu.europa.esig.dss.validation.scope.AbstractSignatureScopeFinder
eu.europa.esig.dss.cades.validation.scope.CAdESSignatureScopeFinder
- All Implemented Interfaces:
SignatureScopeFinder<CAdESSignature>
- Direct Known Subclasses:
ASiCWithCAdESSignatureScopeFinder
public class CAdESSignatureScopeFinder
extends AbstractSignatureScopeFinder
implements SignatureScopeFinder<CAdESSignature>
Finds
SignatureScopes for a CAdES signature-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindSignatureScope(CAdESSignature cadesSignature) Returns a list ofSignatureScopes from a signatureprotected DSSDocumentgetOriginalDocument(CAdESSignature cadesSignature) Returns original document for the given CAdES signatureprotected List<SignatureScope>getSignatureScopeFromOriginalDocument(CAdESSignature cadesSignature, DSSDocument originalDocument) Returns a list ofSignatureScopes from the signed documentprotected List<SignatureScope>Gets a list ofSignatureScopes from aReferenceValidationMethods inherited from class eu.europa.esig.dss.validation.scope.AbstractSignatureScopeFinder
getDefaultDigestAlgorithm, getDigest, getDigest, getTokenIdentifierProvider, isASiCEArchive, isASiCSArchive, setDefaultDigestAlgorithm, setTokenIdentifierProviderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.europa.esig.dss.validation.scope.SignatureScopeFinder
setDefaultDigestAlgorithm, setTokenIdentifierProvider
-
Constructor Details
-
CAdESSignatureScopeFinder
public CAdESSignatureScopeFinder()Default constructor
-
-
Method Details
-
findSignatureScope
Description copied from interface:SignatureScopeFinderReturns a list ofSignatureScopes from a signature- Specified by:
findSignatureScopein interfaceSignatureScopeFinder<CAdESSignature>- Parameters:
cadesSignature-AdvancedSignatureto get signatureScopes for- Returns:
- a list of
SignatureScopes
-
getSignatureScopeFromOriginalDocument
protected List<SignatureScope> getSignatureScopeFromOriginalDocument(CAdESSignature cadesSignature, DSSDocument originalDocument) Returns a list ofSignatureScopes from the signed document- Parameters:
cadesSignature-CAdESSignatureoriginalDocument-DSSDocument- Returns:
- a list of
SignatureScopes
-
getSignatureScopeFromReferenceValidation
protected List<SignatureScope> getSignatureScopeFromReferenceValidation(ReferenceValidation reference) Gets a list ofSignatureScopes from aReferenceValidation- Parameters:
reference-ReferenceValidationto get SignatureScope from- Returns:
- a list of
SignatureScopes
-
getOriginalDocument
Returns original document for the given CAdES signature- Parameters:
cadesSignature-CAdESSignatureto get original document for- Returns:
DSSDocumentoriginal document
-