Package eu.europa.esig.dss.model.scope
Class SignatureScope
java.lang.Object
eu.europa.esig.dss.model.scope.SignatureScope
- All Implemented Interfaces:
IdentifierBasedObject,Serializable
- Direct Known Subclasses:
ContainerSignatureScope,CounterSignatureScope,DigestSignatureScope,FullSignatureScope,HTTPHeaderSignatureScope,PdfByteRangeSignatureScope,SignatureScopeWithTransformations,SignatureSignatureScope
This class describes the scope of the signature
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSignatureScope(DSSDocument document) Default constructorprotectedSignatureScope(String name, DSSDocument document) Default constructor with name provided -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChildSignatureScope(SignatureScope signatureScope) Adds a new childSignatureScopebooleanReturns a list of dependent signature scopes (e.g.abstract StringgetDescription(TokenIdentifierProvider tokenIdentifierProvider) Gets the signature scope descriptiongetDigest(DigestAlgorithm digestAlgorithm) Gets digests of the documentGets name of the documentgetDSSId()Returns the unique DSS IdentifierReturns aStringrepresentation of the DSS IdentifiergetName(TokenIdentifierProvider tokenIdentifierProvider) Returns a signature scope nameReturns a list of transformations on the original document when applicableabstract SignatureScopeTypegetType()Returns type of the signature scopeinthashCode()toString()
-
Constructor Details
-
SignatureScope
Default constructor- Parameters:
document-DSSDocument
-
SignatureScope
Default constructor with name provided- Parameters:
name-Stringdocument namedocument-DSSDocument
-
-
Method Details
-
getDocumentName
-
getName
Returns a signature scope name- Parameters:
tokenIdentifierProvider-TokenIdentifierProviderto extract a token identifier, when required- Returns:
String
-
getDigest
Gets digests of the document- Parameters:
digestAlgorithm-DigestAlgorithm- Returns:
Digest
-
getDescription
Gets the signature scope description- Parameters:
tokenIdentifierProvider-TokenIdentifierProviderto extract a token identifier, when required- Returns:
String
-
getTransformations
-
getType
Returns type of the signature scope- Returns:
SignatureScopeType
-
getChildren
Returns a list of dependent signature scopes (e.g. Manifest entries)- Returns:
- a list of
SignatureScopes
-
addChildSignatureScope
Adds a new childSignatureScope- Parameters:
signatureScope-SignatureScopeto add
-
getDSSId
Returns the unique DSS Identifier- Specified by:
getDSSIdin interfaceIdentifierBasedObject- Returns:
DataIdentifier
-
getDSSIdAsString
-
toString
-
equals
-
hashCode
-