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