Class ReferenceOctetStreamData
java.lang.Object
org.apache.xml.security.signature.reference.ReferenceOctetStreamData
- All Implemented Interfaces:
ReferenceData
A representation of a
ReferenceData
type containing an OctetStream.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReferenceOctetStreamData
(InputStream octetStream) Creates a newReferenceOctetStreamData
.ReferenceOctetStreamData
(InputStream octetStream, String uri, String mimeType) Creates a newReferenceOctetStreamData
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the MIME type associated with the data object represented by thisReferenceOctetStreamData
.Returns the input stream of thisReferenceOctetStreamData
.getURI()
Returns the URI String identifying the data object represented by thisReferenceOctetStreamData
.
-
Field Details
-
octetStream
-
uri
-
mimeType
-
-
Constructor Details
-
ReferenceOctetStreamData
Creates a newReferenceOctetStreamData
.- Parameters:
octetStream
- the input stream containing the octets- Throws:
NullPointerException
- ifoctetStream
isnull
-
ReferenceOctetStreamData
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
- ifoctetStream
isnull
-
-
Method Details
-
getOctetStream
Returns the input stream of thisReferenceOctetStreamData
.- Returns:
- the input stream of this
ReferenceOctetStreamData
.
-
getURI
Returns the URI String identifying the data object represented by thisReferenceOctetStreamData
.- Returns:
- the URI String or
null
if not applicable
-
getMimeType
Returns the MIME type associated with the data object represented by thisReferenceOctetStreamData
.- Returns:
- the MIME type or
null
if not applicable
-