SignedInfo (Java Platform SE 6) (original) (raw)
javax.xml.crypto.dsig
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">
<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](../../../../javax/xml/crypto/dsig/XMLSignatureFactory.html#newSignedInfo%28javax.xml.crypto.dsig.CanonicalizationMethod, javax.xml.crypto.dsig.SignatureMethod, java.util.List%29) methods of theXMLSignatureFactory class.
Since:
1.6
See Also:
[XMLSignatureFactory.newSignedInfo(CanonicalizationMethod, SignatureMethod, List)](../../../../javax/xml/crypto/dsig/XMLSignatureFactory.html#newSignedInfo%28javax.xml.crypto.dsig.CanonicalizationMethod, javax.xml.crypto.dsig.SignatureMethod, java.util.List%29), [XMLSignatureFactory.newSignedInfo(CanonicalizationMethod, SignatureMethod, List, String)](../../../../javax/xml/crypto/dsig/XMLSignatureFactory.html#newSignedInfo%28javax.xml.crypto.dsig.CanonicalizationMethod, javax.xml.crypto.dsig.SignatureMethod, java.util.List, java.lang.String%29)
Method Summary | |
---|---|
CanonicalizationMethod | getCanonicalizationMethod() Returns the canonicalization method of this SignedInfo. |
InputStream | getCanonicalizedData() Returns the canonicalized signed info bytes after a signing or validation operation. |
String | getId() Returns the optional Id attribute of this SignedInfo. |
List | getReferences() Returns an unmodifiable list of one or more References. |
SignatureMethod | getSignatureMethod() Returns the signature method of this SignedInfo. |
Methods inherited from interface javax.xml.crypto.XMLStructure |
---|
isFeatureSupported |
Method Detail |
---|
getCanonicalizationMethod
CanonicalizationMethod getCanonicalizationMethod()
Returns the canonicalization method of this SignedInfo
.
Returns:
the canonicalization method
getSignatureMethod
SignatureMethod getSignatureMethod()
Returns the signature method of this SignedInfo
.
Returns:
the signature method
getReferences
List getReferences()
Returns an unmodifiable list of one or more References.
Returns:
an unmodifiable list of one or more References
getId
String getId()
Returns the optional Id
attribute of this SignedInfo
.
Returns:
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.
Returns:
an InputStream
containing the canonicalized bytes, or null
if this SignedInfo
has not been signed or validated yet
Submit a bug or feature
For further API reference and developer documentation, see Java SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
Scripting on this page tracks web page traffic, but does not change the content in any way.