public final class

DataObjectReference

extends DataObjectDesc
java.lang.Object
   ↳ xades4j.properties.DataObjectDesc
     ↳ xades4j.production.DataObjectReference

Class Overview

A reference to a signed data object. Each instance of this class will result in a ds:Reference element in the signature.

Summary

Public Constructors
DataObjectReference(String uri)
Creates a new data object reference.
Public Methods
DataObjectReference withType(String type)
Defines the type of the reference.
[Expand]
Inherited Methods
From class xades4j.properties.DataObjectDesc
From class java.lang.Object

Public Constructors

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

Public Methods

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