Class AbstractSignatureScopeFinder
java.lang.Object
eu.europa.esig.dss.validation.scope.AbstractSignatureScopeFinder
- Direct Known Subclasses:
CAdESSignatureScopeFinder
,DetachedTimestampScopeFinder
,EncapsulatedTimestampScopeFinder
,JAdESSignatureScopeFinder
,PdfRevisionScopeFinder
,XAdESSignatureScopeFinder
The abstract class for
SignatureScope
finding-
Constructor Summary
ModifierConstructorDescriptionprotected
Default constructor instantiating the object with default values -
Method Summary
Modifier and TypeMethodDescriptionprotected DigestAlgorithm
Returns the usedDigestAlgorithm
protected Digest
getDigest
(byte[] dataBytes) Gets digest of a binariesprotected Digest
getDigest
(DSSDocument document) Gets digest of a documentprotected TokenIdentifierProvider
Gets theTokenIdentifierProvider
protected boolean
isASiCEArchive
(AdvancedSignature advancedSignature) Checks if the given signature represents an ASiC-E containerprotected boolean
isASiCSArchive
(AdvancedSignature advancedSignature) Checks if the given signature represents an ASiC-S containervoid
setDefaultDigestAlgorithm
(DigestAlgorithm defaultDigestAlgorithm) Sets the default DigestAlgorithm to use forSignatureScope
digest computationvoid
setTokenIdentifierProvider
(TokenIdentifierProvider tokenIdentifierProvider) Sets theTokenIdentifierProvider
to be used for identifiers extraction
-
Constructor Details
-
AbstractSignatureScopeFinder
protected AbstractSignatureScopeFinder()Default constructor instantiating the object with default values
-
-
Method Details
-
getDefaultDigestAlgorithm
Returns the usedDigestAlgorithm
- Returns:
DigestAlgorithm
-
setDefaultDigestAlgorithm
Sets the default DigestAlgorithm to use forSignatureScope
digest computation- Parameters:
defaultDigestAlgorithm
-DigestAlgorithm
to use
-
getTokenIdentifierProvider
Gets theTokenIdentifierProvider
- Returns:
TokenIdentifierProvider
-
setTokenIdentifierProvider
Sets theTokenIdentifierProvider
to be used for identifiers extraction- Parameters:
tokenIdentifierProvider
-TokenIdentifierProvider
-
getDigest
Gets digest of a document- Parameters:
document
-DSSDocument
- Returns:
Digest
-
getDigest
Gets digest of a binaries- Parameters:
dataBytes
- a byte array- Returns:
Digest
-
isASiCSArchive
Checks if the given signature represents an ASiC-S container- Parameters:
advancedSignature
-AdvancedSignature
to check- Returns:
- TRUE if the signature is ASiC-S, FALSE otherwise
-
isASiCEArchive
Checks if the given signature represents an ASiC-E container- Parameters:
advancedSignature
-AdvancedSignature
to check- Returns:
- TRUE if the signature is ASiC-E, FALSE otherwise
-