Interface SignedInfo

All Superinterfaces:

public interface SignedInfo extends XMLStructure
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">
     <element ref="ds:CanonicalizationMethod"/>
     <element ref="ds:SignatureMethod"/>
     <element ref="ds:Reference" maxOccurs="unbounded"/>
   <attribute name="Id" type="ID" use="optional"/>
A SignedInfo instance may be created by invoking one of the newSignedInfo methods of the XMLSignatureFactory class.
See Also:
XMLSignatureFactory.newSignedInfo(CanonicalizationMethod, SignatureMethod, List), XMLSignatureFactory.newSignedInfo(CanonicalizationMethod, SignatureMethod, List, String)
  • Method Details

    • getCanonicalizationMethod

      CanonicalizationMethod getCanonicalizationMethod()
      Returns the canonicalization method of this SignedInfo.
      the canonicalization method
    • getSignatureMethod

      SignatureMethod getSignatureMethod()
      Returns the signature method of this SignedInfo.
      the signature method
    • getReferences

      List<Reference> getReferences()
      Returns an unmodifiable list of one or more References.
      an unmodifiable list of one or more References
    • getId

      String getId()
      Returns the optional Id attribute of this SignedInfo.
      the id (may be null if not specified)
    • getCanonicalizedData

      InputStream getCanonicalizedData()
      Returns the canonicalized signed info bytes after a signing or validation operation. This method is useful for debugging.
      an InputStream containing the canonicalized bytes, or null if this SignedInfo has not been signed or validated yet