-
- All Superinterfaces:
- XMLStructure
public interface SignedInfo extends XMLStructure
An representation of the XMLSignedInfo
element as defined in the W3C Recommendation for XML-Signature Syntax and Processing. The XML Schema Definition is defined as:
A<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>
SignedInfo
instance may be created by invoking one of thenewSignedInfo
methods of theXMLSignatureFactory
class.
-
-
Method Summary
Methods Modifier and Type Method and Description CanonicalizationMethod
getCanonicalizationMethod()
Returns the canonicalization method of thisSignedInfo
.InputStream
getCanonicalizedData()
Returns the canonicalized signed info bytes after a signing or validation operation.String
getId()
Returns the optionalId
attribute of thisSignedInfo
.List
getReferences()
Returns anunmodifiable list
of one or moreReference
s.SignatureMethod
getSignatureMethod()
Returns the signature method of thisSignedInfo
.-
Methods inherited from interface javax.xml.crypto.XMLStructure
isFeatureSupported
-
-
-
-
Method Detail
-
getCanonicalizationMethod
CanonicalizationMethod getCanonicalizationMethod()
Returns the canonicalization method of thisSignedInfo
.- Returns:
- the canonicalization method
-
getSignatureMethod
SignatureMethod getSignatureMethod()
Returns the signature method of thisSignedInfo
.- Returns:
- the signature method
-
getReferences
List getReferences()
Returns anunmodifiable list
of one or moreReference
s.- Returns:
- an unmodifiable list of one or more
Reference
s
-
getId
String getId()
Returns the optionalId
attribute of thisSignedInfo
.- 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, ornull
if thisSignedInfo
has not been signed or validated yet
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-javax/xml/crypto/dsig/SignedInfo.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.