This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.xml.crypto.dsig
interface SignedInfo

All Superinterfaces:
XMLStructure

Most common way to construct:

XMLSignatureFactory fac = …;
CanonicalizationMethod cm = …;
SignatureMethod sm = …;
ArrayList refList = …;

SignedInfo signedInfo = fac.newSignedInfo(cm, sm, refList);

Based on 9 examples


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">
   <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 {@link XMLSignatureFactory#newSignedInfo newSignedInfo} methods of the {@link XMLSignatureFactory} class.


Method Summary
 CanonicalizationMethod

          Returns the canonicalization method of this SignedInfo.
 InputStream

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

          Returns the optional Id attribute of this SignedInfo.
 List

          Returns an java.util.Collections.unmodifiableList of one or more javax.xml.crypto.dsig.References.
 SignatureMethod

          Returns the signature method of this SignedInfo.
 
Methods inherited from class javax.xml.crypto.XMLStructure
isFeatureSupported
 

Method Detail

getCanonicalizationMethod

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

Returns:
the canonicalization method

getCanonicalizedData

public 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

getId

public String getId()
Returns the optional Id attribute of this SignedInfo.

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

getReferences

public List getReferences()
Returns an {@link java.util.Collections#unmodifiableList unmodifiable list} of one or more {@link Reference}s.

Returns:
an unmodifiable list of one or more {@link Reference}s

getSignatureMethod

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

Returns:
the signature method


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.