java.lang.Object | |
↳ | xades4j.production.SignedDataObjects |
Represents a set of data objects to be signed. Besides the data objects themselves, this class can be used to specify:
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an empty container.
| |||||||||||
Creates a container with the given data objects.
| |||||||||||
Creates a container with the given data objects.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sets the base URI for all the relative references.
| |||||||||||
Adds a CommitmentType signed property shared among all data objects.
| |||||||||||
Adds a AllDataObjectsTimeStamp signed property applied to all data objects.
| |||||||||||
Adds a custom global unsigned data object property.
| |||||||||||
Adds a custom global signed data object property.
| |||||||||||
Registers a ResourceResolver to be used when signing the current
set of data objects.
| |||||||||||
Adds a data object to be signed.
| |||||||||||
Adds a set of data objects to be signed.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates an empty container.
Creates a container with the given data objects.
dataObjs | the signed data objects |
---|
NullPointerException | if dataObjs or any of the objects is null
|
---|
Creates a container with the given data objects.
dataObjs | the signed data objects |
---|
NullPointerException | if dataObjs or any of the objects is null
|
---|
Sets the base URI for all the relative references. Fragment references (starting with '#') are not afected.
baseUri | the references' base uri |
---|
Adds a CommitmentType signed property shared among all data objects. The
resulting property in the XAdES signature will contain the AllSignedDataObjects
element.
This method can be invoked multiple times with different properties since
the signer may express multiple commitments towards the data objects.
commitment | the CommitmentType property |
---|
PropertyTargetException | if the given property (instance) is already present |
---|---|
NullPointerException | if the given property is null
|
Adds a AllDataObjectsTimeStamp signed property applied to all data objects. This method can be invoked multiple times since multiple times-stamps can be present.
Adds a custom global unsigned data object property. The purpose of this method is extensibility.
Each custom property needs a corresponding PropertyDataObjectGenerator
which can be supplied through XadesSigningProfile
.
otherUnsignedDataObjProp | the custom property |
---|
NullPointerException | if otherUnsignedDataObjProp is null |
---|---|
PropertyTargetException | if the property is already present |
IllegalArgumentException | if the property if not properly annotated |
Adds a custom global signed data object property. The purpose of this method is extensibility.
Each custom property needs a corresponding PropertyDataObjectGenerator
which can be supplied through XadesSigningProfile
.
otherSignedDataObjProp | the custom property |
---|
NullPointerException | if otherSignedDataObjProp is null |
---|---|
PropertyTargetException | if the property is already present |
IllegalArgumentException | if the property if not properly annotated |
Registers a ResourceResolver to be used when signing the current set of data objects. The resolvers are considered in the same order they are added and have priority over the globally registered resolvers.
resolver | the resolver |
---|
NullPointerException | if resolver is null
|
---|
Adds a data object to be signed. Each data object description will result
in a ds:Reference
element in the final XAdES signature.
object | the data object |
---|
NullPointerException | if object is null |
---|---|
IllegalStateException | if the data object description is already present |
Adds a set of data objects to be signed. Each data object description will
result in a ds:Reference
element in the final XAdES signature.
objsInfo | the data objects |
---|
NullPointerException | if objsInfo or any of the objects is null |
---|---|
IllegalStateException | if any of the data object descriptions is already present |