| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
XMLSignatureFactory fac = …;
CanonicalizationMethod cm = …;
SignatureMethod sm = …;
ArrayList refList = …;
SignedInfo signedInfo = fac.newSignedInfo(cm, sm, refList);
Based on 9 examples
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
{@link XMLSignatureFactory#newSignedInfo newSignedInfo} methods of the
{@link XMLSignatureFactory} class.
Method Summary | |
---|---|
CanonicalizationMethod |
Returns the canonicalization method of this SignedInfo .
|
InputStream |
Returns the canonicalized signed info bytes after a signing or validation operation. |
String |
getId() Returns the optional Id attribute of this
SignedInfo .
|
List |
Returns an java.util.Collections.unmodifiableList of one or more javax.xml.crypto.dsig.References. |
SignatureMethod |
Returns the signature method of this SignedInfo .
|
Methods inherited from class javax.xml.crypto.XMLStructure |
---|
isFeatureSupported |
Method Detail |
---|
public CanonicalizationMethod getCanonicalizationMethod()
SignedInfo
.
public InputStream getCanonicalizedData()
InputStream
containing the canonicalized bytes,
or null
if this SignedInfo
has not been
signed or validated yetpublic String getId()
Id
attribute of this
SignedInfo
.
null
if not specified)public List getReferences()
public SignatureMethod getSignatureMethod()
SignedInfo
.
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |