Class AbstractSignatureScopeFinder
java.lang.Object
eu.europa.esig.dss.validation.scope.AbstractSignatureScopeFinder
- Direct Known Subclasses:
DetachedTimestampScopeFinder,EncapsulatedTimestampScopeFinder
The abstract class for
SignatureScope finding-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor instantiating the object with default values -
Method Summary
Modifier and TypeMethodDescriptionprotected eu.europa.esig.dss.enumerations.DigestAlgorithmReturns the usedDigestAlgorithmprotected eu.europa.esig.dss.model.DigestgetDigest(byte[] dataBytes) Gets digest of a binariesprotected eu.europa.esig.dss.model.DigestgetDigest(eu.europa.esig.dss.model.DSSDocument document) Gets digest of a documentprotected TokenIdentifierProviderGets theTokenIdentifierProviderprotected booleanisASiCEArchive(AdvancedSignature advancedSignature) Checks if the given signature represents an ASiC-E containerprotected booleanisASiCSArchive(AdvancedSignature advancedSignature) Checks if the given signature represents an ASiC-S containervoidsetDefaultDigestAlgorithm(eu.europa.esig.dss.enumerations.DigestAlgorithm defaultDigestAlgorithm) Sets the default DigestAlgorithm to use forSignatureScopedigest computationvoidsetTokenIdentifierProvider(TokenIdentifierProvider tokenIdentifierProvider) Sets theTokenIdentifierProviderto be used for identifiers extraction
-
Constructor Details
-
AbstractSignatureScopeFinder
protected AbstractSignatureScopeFinder()Default constructor instantiating the object with default values
-
-
Method Details
-
getDefaultDigestAlgorithm
protected eu.europa.esig.dss.enumerations.DigestAlgorithm getDefaultDigestAlgorithm()Returns the usedDigestAlgorithm- Returns:
DigestAlgorithm
-
setDefaultDigestAlgorithm
public void setDefaultDigestAlgorithm(eu.europa.esig.dss.enumerations.DigestAlgorithm defaultDigestAlgorithm) Sets the default DigestAlgorithm to use forSignatureScopedigest computation- Parameters:
defaultDigestAlgorithm-DigestAlgorithmto use
-
getTokenIdentifierProvider
Gets theTokenIdentifierProvider- Returns:
TokenIdentifierProvider
-
setTokenIdentifierProvider
Sets theTokenIdentifierProviderto be used for identifiers extraction- Parameters:
tokenIdentifierProvider-TokenIdentifierProvider
-
getDigest
protected eu.europa.esig.dss.model.Digest getDigest(eu.europa.esig.dss.model.DSSDocument document) Gets digest of a document- Parameters:
document-DSSDocument- Returns:
Digest
-
getDigest
protected eu.europa.esig.dss.model.Digest getDigest(byte[] dataBytes) 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-AdvancedSignatureto check- Returns:
- TRUE if the signature is ASiC-S, FALSE otherwise
-
isASiCEArchive
Checks if the given signature represents an ASiC-E container- Parameters:
advancedSignature-AdvancedSignatureto check- Returns:
- TRUE if the signature is ASiC-E, FALSE otherwise
-