Package xades4j.production
Class AnonymousDataObjectReference
java.lang.Object
xades4j.properties.DataObjectDesc
xades4j.production.AnonymousDataObjectReference
A
null
URI data reference. An instance of this class will result in a
ds:Reference
element in the signature whose URI
attribute is
not present.
A signature can contain at most one reference of this type, as specified in XML-DSIG.
- Author:
- Luís
-
Constructor Summary
ConstructorsConstructorDescriptionAnonymousDataObjectReference
(byte[] data) Creates a new anonymous data object reference.AnonymousDataObjectReference
(InputStream dataStream) Creates a new anonymous data object reference from a data stream. -
Method Summary
Methods inherited from class xades4j.properties.DataObjectDesc
getSignedDataObjProps, getTransforms, getUnsignedDataObjProps, hasProperties, withCommitmentType, withDataObjectFormat, withDataObjectTimeStamp, withDataObjectTimeStamp, withOtherDataObjectProperty, withOtherDataObjectProperty, withTransform
-
Constructor Details
-
AnonymousDataObjectReference
Creates a new anonymous data object reference from a data stream. The stream will be accessed atds:Reference
generation and won't be closed. Additional information is added through the different methods inDataObjectDesc
.- Parameters:
dataStream
- the input stream used to get the object data- Throws:
NullPointerException
- ifdataStream
isnull
-
AnonymousDataObjectReference
public AnonymousDataObjectReference(byte[] data) Creates a new anonymous data object reference. Additional information is added through the different methods inDataObjectDesc
.- Parameters:
data
- the object data- Throws:
NullPointerException
- ifdata
isnull
-