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 aReferenceData
type containing an OctetStream.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
mimeType
private java.io.InputStream
octetStream
private java.lang.String
uri
-
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.String
getMimeType()
Returns the MIME type associated with the data object represented by thisReferenceOctetStreamData
.java.io.InputStream
getOctetStream()
Returns the input stream of thisReferenceOctetStreamData
.java.lang.String
getURI()
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
- ifoctetStream
isnull
-
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
- ifoctetStream
isnull
-
-
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
null
if 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
null
if not applicable
-
-