public class InputDataBinaryImpl extends Object implements ContentBinary, InputData
HashInputData
and ReferenceInputData
information as part of VerifyXMLSignatureResponse
.Modifier and Type | Field and Description |
---|---|
protected String |
partOf_
This attribute signals what kind of container the XMLDSIG
Reference
this InputData belongs to is part of. |
protected int |
referringReferenceNumber_
If this
InputData belongs to an XMLDSIG Reference
being part of either a XMLDSIGManifest or a SignatureManifest, this attribute
(a positive int) signals the particular Reference of the XMLDSIG
SignedInfo referring to the XMLDSIGManifest or SignatureManifest
respectively. |
protected ContentBinary |
wrapped_
The wrapped
Content . |
CONTAINER_SIGNEDINFO_, CONTAINER_XMLDSIGMANIFEST_, REFERER_NONE_
BINARY_CONTENT, LOCREF_CONTENT, REFERENCE_CONTENT, XML_CONTENT
Constructor and Description |
---|
InputDataBinaryImpl(Content wrapped,
String partOf,
int referringReferenceNumber)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
getBinaryContent()
Get the binary content.
|
int |
getContentType()
Gets the type of content contained in this object.
|
String |
getPartOf()
Returns a
String signalling what kind of container the
XMLDSIG Reference this InputData belongs
to is part of. |
String |
getReference()
Gets the reference to the content data (a URI).
|
int |
getReferringReferenceNumber()
If this
InputData belongs to an XMLDSIG Reference
being part of either a XMLDSIGManifest or a SignatureManifest, this method
returns a positive int value signalling the particular Reference
of the XMLDSIG SignedInfo referring to the XMLDSIGManifest or
SignatureManifest respectively. |
protected ContentBinary wrapped_
Content
.protected String partOf_
Reference
this InputData
belongs to is part of.protected int referringReferenceNumber_
InputData
belongs to an XMLDSIG Reference
being part of either a XMLDSIGManifest or a SignatureManifest, this attribute
(a positive int) signals the particular Reference
of the XMLDSIG
SignedInfo
referring to the XMLDSIGManifest or SignatureManifest
respectively.public InputDataBinaryImpl(Content wrapped, String partOf, int referringReferenceNumber) throws MOARuntimeException
wrapped
- The wrapped Content
. Must be of type Content.BINARY_CONTENT
.partOf
- see InputData
referringReferenceNumber
- see InputData
MOARuntimeException
public int getContentType()
Content
getContentType
in interface Content
BINARY_CONTENT
, XML_CONTENT
,
REFERENCE_CONTENT
or LOCREF_CONTENT
.Content.getContentType()
public String getReference()
Content
getReference
in interface Content
Content.getReference()
public InputStream getBinaryContent()
ContentBinary
getBinaryContent
in interface ContentBinary
InputStream
from which the binary content can
be read.ContentBinary.getBinaryContent()
public String getPartOf()
InputData
String
signalling what kind of container the
XMLDSIG Reference
this InputData
belongs
to is part of.getPartOf
in interface InputData
InputData.getPartOf()
public int getReferringReferenceNumber()
InputData
InputData
belongs to an XMLDSIG Reference
being part of either a XMLDSIGManifest or a SignatureManifest, this method
returns a positive int value signalling the particular Reference
of the XMLDSIG SignedInfo
referring to the XMLDSIGManifest or
SignatureManifest respectively.getReferringReferenceNumber
in interface InputData
InputData.getReferringReferenceNumber()
Copyright © 2016. All rights reserved.