javax.xml.crypto.dsig.SignedInfo, javax.xml.crypto.XMLStructurepublic final class DOMSignedInfo extends DOMStructure implements javax.xml.crypto.dsig.SignedInfo
| Modifier and Type | Field | Description |
|---|---|---|
static int |
MAXIMUM_REFERENCE_COUNT |
The maximum number of references per Manifest, if secure validation is enabled.
|
| Constructor | Description |
|---|---|
DOMSignedInfo(javax.xml.crypto.dsig.CanonicalizationMethod cm,
javax.xml.crypto.dsig.SignatureMethod sm,
java.util.List<? extends javax.xml.crypto.dsig.Reference> references) |
Creates a
DOMSignedInfo from the specified parameters. |
DOMSignedInfo(javax.xml.crypto.dsig.CanonicalizationMethod cm,
javax.xml.crypto.dsig.SignatureMethod sm,
java.util.List<? extends javax.xml.crypto.dsig.Reference> references,
java.lang.String id) |
Creates a
DOMSignedInfo from the specified parameters. |
DOMSignedInfo(org.w3c.dom.Element siElem,
javax.xml.crypto.XMLCryptoContext context,
java.security.Provider provider) |
Creates a
DOMSignedInfo from an element. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
canonicalize(javax.xml.crypto.XMLCryptoContext context,
java.io.ByteArrayOutputStream bos) |
|
boolean |
equals(java.lang.Object o) |
|
javax.xml.crypto.dsig.CanonicalizationMethod |
getCanonicalizationMethod() |
|
java.io.InputStream |
getCanonicalizedData() |
|
java.lang.String |
getId() |
|
java.util.List<javax.xml.crypto.dsig.Reference> |
getReferences() |
|
javax.xml.crypto.dsig.SignatureMethod |
getSignatureMethod() |
|
static java.util.List<javax.xml.crypto.dsig.Reference> |
getSignedInfoReferences(javax.xml.crypto.dsig.SignedInfo si) |
|
int |
hashCode() |
|
void |
marshal(XmlWriter xwriter,
java.lang.String dsPrefix,
javax.xml.crypto.XMLCryptoContext context) |
isFeatureSupported, textOfNodepublic static final int MAXIMUM_REFERENCE_COUNT
public DOMSignedInfo(javax.xml.crypto.dsig.CanonicalizationMethod cm,
javax.xml.crypto.dsig.SignatureMethod sm,
java.util.List<? extends javax.xml.crypto.dsig.Reference> references)
DOMSignedInfo from the specified parameters. Use
this constructor when the Id is not specified.cm - the canonicalization methodsm - the signature methodreferences - the list of references. The list is copied.java.lang.NullPointerException - if
cm, sm, or references is
nulljava.lang.IllegalArgumentException - if references is emptyjava.lang.ClassCastException - if any of the references are not of
type Referencepublic DOMSignedInfo(javax.xml.crypto.dsig.CanonicalizationMethod cm,
javax.xml.crypto.dsig.SignatureMethod sm,
java.util.List<? extends javax.xml.crypto.dsig.Reference> references,
java.lang.String id)
DOMSignedInfo from the specified parameters.cm - the canonicalization methodsm - the signature methodreferences - the list of references. The list is copied.id - an optional identifer that will allow this
SignedInfo to be referenced by other signatures and
objectsjava.lang.NullPointerException - if cm, sm,
or references is nulljava.lang.IllegalArgumentException - if references is emptyjava.lang.ClassCastException - if any of the references are not of
type Referencepublic DOMSignedInfo(org.w3c.dom.Element siElem,
javax.xml.crypto.XMLCryptoContext context,
java.security.Provider provider)
throws javax.xml.crypto.MarshalException
DOMSignedInfo from an element.siElem - a SignedInfo elementjavax.xml.crypto.MarshalExceptionpublic javax.xml.crypto.dsig.CanonicalizationMethod getCanonicalizationMethod()
getCanonicalizationMethod in interface javax.xml.crypto.dsig.SignedInfopublic javax.xml.crypto.dsig.SignatureMethod getSignatureMethod()
getSignatureMethod in interface javax.xml.crypto.dsig.SignedInfopublic java.lang.String getId()
getId in interface javax.xml.crypto.dsig.SignedInfopublic java.util.List<javax.xml.crypto.dsig.Reference> getReferences()
getReferences in interface javax.xml.crypto.dsig.SignedInfopublic java.io.InputStream getCanonicalizedData()
getCanonicalizedData in interface javax.xml.crypto.dsig.SignedInfopublic void canonicalize(javax.xml.crypto.XMLCryptoContext context,
java.io.ByteArrayOutputStream bos)
throws javax.xml.crypto.dsig.XMLSignatureException
javax.xml.crypto.dsig.XMLSignatureExceptionpublic void marshal(XmlWriter xwriter, java.lang.String dsPrefix, javax.xml.crypto.XMLCryptoContext context) throws javax.xml.crypto.MarshalException
marshal in class DOMStructurejavax.xml.crypto.MarshalExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic static java.util.List<javax.xml.crypto.dsig.Reference> getSignedInfoReferences(javax.xml.crypto.dsig.SignedInfo si)
public int hashCode()
hashCode in class java.lang.Object