SignedInfo element as
defined in the
W3C Recommendation for XML-Signature Syntax and Processing.
The XML Schema Definition is defined as:
<element name="SignedInfo" type="ds:SignedInfoType"/>
<complexType name="SignedInfoType">
<sequence>
<element ref="ds:CanonicalizationMethod"/>
<element ref="ds:SignatureMethod"/>
<element ref="ds:Reference" maxOccurs="unbounded"/>
</sequence>
<attribute name="Id" type="ID" use="optional"/>
</complexType>
A SignedInfo instance may be created by invoking one of the
newSignedInfo methods of the
XMLSignatureFactory class.
XMLSignatureFactory#newSignedInfo(CanonicalizationMethod, SignatureMethod, List), XMLSignatureFactory#newSignedInfo(CanonicalizationMethod, SignatureMethod, List, String)
| Modifier and Type | Method and Description |
|---|---|
| public CanonicalizationMethod | Returns: the canonicalization methodReturns the canonicalization method of this |
| public InputStream | Returns: anInputStream containing the canonicalized bytes,
or null if this SignedInfo has not been
signed or validated yetReturns the canonicalized signed info bytes after a signing or validation operation. |
| public String | Returns: the id (may benull if not specified)Returns the optional |
| public List | Returns: an unmodifiable list of one or moreReferencesReturns an |
| public SignatureMethod |
| getCanonicalizationMethod | back to summary |
|---|---|
| public CanonicalizationMethod getCanonicalizationMethod() Returns the canonicalization method of this
| |
| getCanonicalizedData | back to summary |
|---|---|
| public InputStream getCanonicalizedData() Returns the canonicalized signed info bytes after a signing or validation operation. This method is useful for debugging.
| |
| getId | back to summary |
|---|---|
| public String getId() Returns the optional
| |
| getReferences | back to summary |
|---|---|
| public List Returns an | |
| getSignatureMethod | back to summary |
|---|---|
| public SignatureMethod getSignatureMethod() Returns the signature method of this
| |