public final class DOMSignedInfo extends DOMStructure implements javax.xml.crypto.dsig.SignedInfo
Modifier and Type | Field and Description |
---|---|
static int |
MAXIMUM_REFERENCE_COUNT
The maximum number of references per Manifest, if secure validation is enabled.
|
Constructor and 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 and 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 |
getReferences() |
javax.xml.crypto.dsig.SignatureMethod |
getSignatureMethod() |
void |
marshal(org.w3c.dom.Node parent,
java.lang.String dsPrefix,
javax.xml.crypto.dom.DOMCryptoContext context) |
isFeatureSupported
public 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
null
java.lang.IllegalArgumentException
- if references
is emptyjava.lang.ClassCastException
- if any of the references are not of
type Reference
public 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 null
java.lang.IllegalArgumentException
- if references
is emptyjava.lang.ClassCastException
- if any of the references are not of
type Reference
public 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.MarshalException
public javax.xml.crypto.dsig.CanonicalizationMethod getCanonicalizationMethod()
getCanonicalizationMethod
in interface javax.xml.crypto.dsig.SignedInfo
public javax.xml.crypto.dsig.SignatureMethod getSignatureMethod()
getSignatureMethod
in interface javax.xml.crypto.dsig.SignedInfo
public java.lang.String getId()
getId
in interface javax.xml.crypto.dsig.SignedInfo
public java.util.List getReferences()
getReferences
in interface javax.xml.crypto.dsig.SignedInfo
public java.io.InputStream getCanonicalizedData()
getCanonicalizedData
in interface javax.xml.crypto.dsig.SignedInfo
public void canonicalize(javax.xml.crypto.XMLCryptoContext context, java.io.ByteArrayOutputStream bos) throws javax.xml.crypto.dsig.XMLSignatureException
javax.xml.crypto.dsig.XMLSignatureException
public void marshal(org.w3c.dom.Node parent, java.lang.String dsPrefix, javax.xml.crypto.dom.DOMCryptoContext context) throws javax.xml.crypto.MarshalException
marshal
in class DOMStructure
javax.xml.crypto.MarshalException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object