Class ReferenceOctetStreamData
- java.lang.Object
-
- org.apache.xml.security.signature.reference.ReferenceOctetStreamData
-
- All Implemented Interfaces:
ReferenceData
public class ReferenceOctetStreamData extends Object implements ReferenceData
A representation of aReferenceDatatype containing an OctetStream.
-
-
Constructor Summary
Constructors Constructor Description ReferenceOctetStreamData(InputStream octetStream)Creates a newReferenceOctetStreamData.ReferenceOctetStreamData(InputStream octetStream, String uri, String mimeType)Creates a newReferenceOctetStreamData.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMimeType()Returns the MIME type associated with the data object represented by thisReferenceOctetStreamData.InputStreamgetOctetStream()Returns the input stream of thisReferenceOctetStreamData.StringgetURI()Returns the URI String identifying the data object represented by thisReferenceOctetStreamData.
-
-
-
Constructor Detail
-
ReferenceOctetStreamData
public ReferenceOctetStreamData(InputStream octetStream)
Creates a newReferenceOctetStreamData.- Parameters:
octetStream- the input stream containing the octets- Throws:
NullPointerException- ifoctetStreamisnull
-
ReferenceOctetStreamData
public ReferenceOctetStreamData(InputStream octetStream, String uri, String mimeType)
Creates a newReferenceOctetStreamData.- Parameters:
octetStream- the input stream containing the octetsuri- the URI String identifying the data object (may benull)mimeType- the MIME type associated with the data object (may benull)- Throws:
NullPointerException- ifoctetStreamisnull
-
-
Method Detail
-
getOctetStream
public InputStream getOctetStream()
Returns the input stream of thisReferenceOctetStreamData.- Returns:
- the input stream of this
ReferenceOctetStreamData.
-
getURI
public String getURI()
Returns the URI String identifying the data object represented by thisReferenceOctetStreamData.- Returns:
- the URI String or
nullif not applicable
-
getMimeType
public String getMimeType()
Returns the MIME type associated with the data object represented by thisReferenceOctetStreamData.- Returns:
- the MIME type or
nullif not applicable
-
-