public interface

SignedInfo

implements XMLStructure
javax.xml.crypto.dsig.SignedInfo

Class Overview

An representation of the XML 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.

Summary

Public Methods
abstract CanonicalizationMethod getCanonicalizationMethod()
Returns the canonicalization method of this SignedInfo.
abstract InputStream getCanonicalizedData()
Returns the canonicalized signed info bytes after a signing or validation operation.
abstract String getId()
Returns the optional Id attribute of this SignedInfo.
abstract List getReferences()
Returns an unmodifiable list of one or more References.
abstract SignatureMethod getSignatureMethod()
Returns the signature method of this SignedInfo.
[Expand]
Inherited Methods
From interface javax.xml.crypto.XMLStructure

Public Methods

public abstract CanonicalizationMethod getCanonicalizationMethod ()

Returns the canonicalization method of this SignedInfo.

Returns
  • the canonicalization method

public abstract InputStream getCanonicalizedData ()

Returns the canonicalized signed info bytes after a signing or validation operation. This method is useful for debugging.

Returns
  • an InputStream containing the canonicalized bytes, or null if this SignedInfo has not been signed or validated yet

public abstract String getId ()

Returns the optional Id attribute of this SignedInfo.

Returns
  • the id (may be null if not specified)

public abstract List getReferences ()

Returns an unmodifiable list of one or more References.

Returns
  • an unmodifiable list of one or more References

public abstract SignatureMethod getSignatureMethod ()

Returns the signature method of this SignedInfo.

Returns
  • the signature method