Package xades4j.production
Class DataObjectReference
java.lang.Object
xades4j.properties.DataObjectDesc
xades4j.production.DataObjectReference
A reference to a signed data object. Each instance of this class will result
in a
ds:Reference
element in the signature.- Author:
- Luís
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDefines thetype
of the reference.Methods inherited from class xades4j.properties.DataObjectDesc
getSignedDataObjProps, getTransforms, getUnsignedDataObjProps, hasProperties, withCommitmentType, withDataObjectFormat, withDataObjectTimeStamp, withDataObjectTimeStamp, withOtherDataObjectProperty, withOtherDataObjectProperty, withTransform
-
Constructor Details
-
DataObjectReference
Creates a new data object reference. Additional information is added through the different methods inDataObjectDesc
.- Parameters:
uri
- the URI that identifies the target data object- Throws:
NullPointerException
- ifuri
isnull
IllegalArgumentException
- ifuri
is not RFC 2396 compliant
-
-
Method Details
-
withType
Defines thetype
of the reference."The optional Type attribute contains information about the type of object being signed after all
ds:Reference
transforms have been applied. This is represented as a URI.""The Type attribute applies to the item being pointed at, not its contents."
- Parameters:
type
- the reference's type- Returns:
- the current instance
-