Class AnonymousDataObjectReference

java.lang.Object
xades4j.properties.DataObjectDesc
xades4j.production.AnonymousDataObjectReference

public final class AnonymousDataObjectReference extends DataObjectDesc
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 Details

    • AnonymousDataObjectReference

      public AnonymousDataObjectReference(InputStream dataStream)
      Creates a new anonymous data object reference from a data stream. The stream will be accessed at ds:Reference generation and won't be closed. Additional information is added through the different methods in DataObjectDesc.
      Parameters:
      dataStream - the input stream used to get the object data
      Throws:
      NullPointerException - if dataStream is null
    • AnonymousDataObjectReference

      public AnonymousDataObjectReference(byte[] data)
      Creates a new anonymous data object reference. Additional information is added through the different methods in DataObjectDesc.
      Parameters:
      data - the object data
      Throws:
      NullPointerException - if data is null