|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxades4j.production.SignedDataObjects
public final class SignedDataObjects
A set of objects to be signed. Properties that apply to ALL the signed data objects can be specified via this class. This class checks for duplicate data object descriptions (not allowed).
DataObjectDesc,
DataObjectReference,
EnvelopedXmlObject| Constructor Summary | |
|---|---|
SignedDataObjects()
Creates an empty container. |
|
SignedDataObjects(DataObjectDesc... dataObjs)
Creates a container with the given data objects. |
|
SignedDataObjects(Iterable<DataObjectDesc> dataObjs)
Creates a container with the given data objects. |
|
| Method Summary | |
|---|---|
SignedDataObjects |
withBaseUri(String baseUri)
Sets the base URI for all/b> the relative references. |
SignedDataObjects |
withCommitmentType(AllDataObjsCommitmentTypeProperty commitment)
Adds a CommitmentType signed property shared among all data objects. |
SignedDataObjects |
withDataObjectsTimeStamp()
Adds a AllDataObjectsTimeStamp signed property applied to all data objects. |
SignedDataObjects |
withOtherDataObjectProperty(OtherSignedDataObjectProperty otherSignedDataObjProp)
Adds a custom global signed data object property. |
SignedDataObjects |
withOtherDataObjectProperty(OtherUnsignedDataObjectProperty otherUnsignedDataObjProp)
Adds a custom global unsigned data object property. |
SignedDataObjects |
withSignedDataObject(DataObjectDesc object)
Adds a data object to be signed. |
SignedDataObjects |
withSignedDataObjects(Iterable<DataObjectDesc> objsInfo)
Adds a set of data objects to be signed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SignedDataObjects()
public SignedDataObjects(Iterable<DataObjectDesc> dataObjs)
dataObjs - the signed data objects
NullPointerException - if dataObjs or any of the objects is nullpublic SignedDataObjects(DataObjectDesc... dataObjs)
dataObjs - the signed data objects
NullPointerException - if dataObjs or any of the objects is null| Method Detail |
|---|
public SignedDataObjects withBaseUri(String baseUri)
baseUri - the references' base uri
public SignedDataObjects withCommitmentType(AllDataObjsCommitmentTypeProperty commitment)
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 nullpublic SignedDataObjects withDataObjectsTimeStamp()
public SignedDataObjects withOtherDataObjectProperty(OtherSignedDataObjectProperty otherSignedDataObjProp)
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 annotatedpublic SignedDataObjects withOtherDataObjectProperty(OtherUnsignedDataObjectProperty otherUnsignedDataObjProp)
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 annotatedpublic SignedDataObjects withSignedDataObjects(Iterable<DataObjectDesc> objsInfo)
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 presentpublic SignedDataObjects withSignedDataObject(DataObjectDesc object)
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||