-
- All Superinterfaces:
XMLStructure
public interface SignedInfo extends XMLStructure
An representation of the XMLSignedInfoelement 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>SignedInfoinstance may be created by invoking one of thenewSignedInfomethods of theXMLSignatureFactoryclass.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CanonicalizationMethodgetCanonicalizationMethod()Returns the canonicalization method of thisSignedInfo.InputStreamgetCanonicalizedData()Returns the canonicalized signed info bytes after a signing or validation operation.StringgetId()Returns the optionalIdattribute of thisSignedInfo.List<Reference>getReferences()Returns anunmodifiable listof one or moreReferences.SignatureMethodgetSignatureMethod()Returns the signature method of thisSignedInfo.-
Methods declared in 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<Reference> getReferences()
Returns anunmodifiable listof one or moreReferences.- Returns:
- an unmodifiable list of one or more
References
-
getId
String getId()
Returns the optionalIdattribute of thisSignedInfo.- 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
-
-