Interface SignedInfo
- All Superinterfaces:
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:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the canonicalization method of thisSignedInfo
.Returns the canonicalized signed info bytes after a signing or validation operation.getId()
Returns the optionalId
attribute of thisSignedInfo
.Returns anunmodifiable list
of one or moreReference
s.Returns the signature method of thisSignedInfo
.Methods declared in interface XMLStructure
isFeatureSupported
Modifier and TypeMethodDescriptionboolean
isFeatureSupported
(String feature) Indicates whether a specified feature is supported.
-
Method Details
-
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
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
-