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:
  • Constructor Details

    • 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
  • Method Details

    • 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 reference's type
      Returns:
      the current instance