On this page
Interface SignedInfo
- All Superinterfaces:
-
XMLStructure
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 methods of the XMLSignatureFactory class.
- Since:
- 1.6
- See Also:
XMLSignatureFactory.newSignedInfo(CanonicalizationMethod, SignatureMethod, List),XMLSignatureFactory.newSignedInfo(CanonicalizationMethod, SignatureMethod, List, String)
Methods
| Modifier and Type | Method | Description |
|---|---|---|
CanonicalizationMethod |
getCanonicalizationMethod() |
Returns the canonicalization method of this |
InputStream |
getCanonicalizedData() |
Returns the canonicalized signed info bytes after a signing or validation operation. |
String |
getId() |
Returns the optional |
List<Reference> |
getReferences() |
Returns an |
SignatureMethod |
getSignatureMethod() |
Returns the signature method of this |
Methods declared in interface javax.xml.crypto.XMLStructure
isFeatureSupported
Methods
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<Reference> 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
nullif 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
InputStreamcontaining the canonicalized bytes, ornullif thisSignedInfohas not been signed or validated yet
© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/11/docs/api/java.xml.crypto/javax/xml/crypto/dsig/SignedInfo.html