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
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 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
Methods inherited from class eu.europa.esig.dss.validation.scope.AbstractSignatureScopeFinder
getDefaultDigestAlgorithm, getDigest, getDigest, getTokenIdentifierProvider, isASiCEArchive, isASiCSArchive, setDefaultDigestAlgorithm, setTokenIdentifierProvider
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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: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
-