Top Description Methods
javax.xml.crypto.dsig

public Interface SignedInfo

extends XMLStructure
Known Direct Implementers
org.jcp.xml.dsig.internal.dom.DOMSignedInfo
Imports
javax.xml.crypto.XMLStructure, java.io.InputStream, java.util.List

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.
Authors
Sean Mullan, JSR 105 Expert Group
Since
1.6
See Also
XMLSignatureFactory#newSignedInfo(CanonicalizationMethod, SignatureMethod, List), XMLSignatureFactory#newSignedInfo(CanonicalizationMethod, SignatureMethod, List, String)

Method Summary

Modifier and TypeMethod and Description
public CanonicalizationMethod

Returns:

the canonicalization method
getCanonicalizationMethod
()

Returns the canonicalization method of this SignedInfo.

public InputStream

Returns:

an InputStream containing the canonicalized bytes, or null if this SignedInfo has not been signed or validated yet
getCanonicalizedData
()

Returns the canonicalized signed info bytes after a signing or validation operation.

public String

Returns:

the id (may be null if not specified)
getId
()

Returns the optional Id attribute of this SignedInfo.

public List<Reference>

Returns:

an unmodifiable list of one or more References
getReferences
()

Returns an unmodifiable list of one or more References.

public SignatureMethod

Returns:

the signature method
getSignatureMethod
()

Returns the signature method of this SignedInfo.

Inherited from javax.xml.crypto.XMLStructure:
isFeatureSupported

Method Detail

getCanonicalizationMethodback to summary
public CanonicalizationMethod getCanonicalizationMethod()

Returns the canonicalization method of this SignedInfo.

Returns:CanonicalizationMethod

the canonicalization method

getCanonicalizedDataback to summary
public InputStream getCanonicalizedData()

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

Returns:InputStream

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

getIdback to summary
public String getId()

Returns the optional Id attribute of this SignedInfo.

Returns:String

the id (may be null if not specified)

getReferencesback to summary
public List<Reference> getReferences()

Returns an unmodifiable list of one or more References.

Returns:List<Reference>

an unmodifiable list of one or more References

getSignatureMethodback to summary
public SignatureMethod getSignatureMethod()

Returns the signature method of this SignedInfo.

Returns:SignatureMethod

the signature method