xades4j.production
Class DataObjectReference
java.lang.Object
xades4j.properties.DataObjectDesc
xades4j.production.DataObjectReference
public final class DataObjectReference
- extends DataObjectDesc
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:
DataObjectDesc,
EnvelopedXmlObject
| Methods inherited from class xades4j.properties.DataObjectDesc |
getSignedDataObjProps, getTransforms, getUnsignedDataObjProps, hasProperties, withCommitmentType, withDataObjectFormat, withDataObjectTimeStamp, withDataObjectTimeStamp, withOtherDataObjectProperty, withOtherDataObjectProperty, withTransform |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataObjectReference
public DataObjectReference(String uri)
- Creates a new data object reference. Additional information is added through
the different methods in
DataObjectDesc.
- Parameters:
uri - the URI that identifies the target data object
- Throws:
NullPointerException - if uri is null
IllegalArgumentException - if uri is not RFC 2396 compliant
withType
public DataObjectReference withType(String type)
- Defines the
type 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 referece's type
- Returns:
- the current instance
Copyright © 2012. All Rights Reserved.