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
ModifierConstructorDescriptionprotected
SignatureScope
(DSSDocument document) Default constructorprotected
SignatureScope
(String name, DSSDocument document) Default constructor with name provided -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChildSignatureScope
(SignatureScope signatureScope) Adds a new childSignatureScope
boolean
Returns a list of dependent signature scopes (e.g.abstract String
getDescription
(TokenIdentifierProvider tokenIdentifierProvider) Gets the signature scope descriptiongetDigest
(DigestAlgorithm digestAlgorithm) Gets digests of the documentGets name of the documentgetDSSId()
Returns the unique DSS IdentifierReturns aString
representation of the DSS IdentifiergetName
(TokenIdentifierProvider tokenIdentifierProvider) Returns a signature scope nameReturns a list of transformations on the original document when applicableabstract SignatureScopeType
getType()
Returns type of the signature scopeint
hashCode()
toString()
-
Constructor Details
-
SignatureScope
Default constructor- Parameters:
document
-DSSDocument
-
SignatureScope
Default constructor with name provided- Parameters:
name
-String
document namedocument
-DSSDocument
-
-
Method Details
-
getDocumentName
-
getName
Returns a signature scope name- Parameters:
tokenIdentifierProvider
-TokenIdentifierProvider
to 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
-TokenIdentifierProvider
to 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
SignatureScope
s
-
addChildSignatureScope
Adds a new childSignatureScope
- Parameters:
signatureScope
-SignatureScope
to add
-
getDSSId
Returns the unique DSS Identifier- Specified by:
getDSSId
in interfaceIdentifierBasedObject
- Returns:
DataIdentifier
-
getDSSIdAsString
-
toString
-
equals
-
hashCode
-