javax.xml.crypto.dsig.XMLSignature, javax.xml.crypto.XMLStructurepublic final class DOMXMLSignature extends DOMStructure implements javax.xml.crypto.dsig.XMLSignature
| Modifier and Type | Class | Description |
|---|---|---|
class |
DOMXMLSignature.DOMSignatureValue |
| Constructor | Description |
|---|---|
DOMXMLSignature(javax.xml.crypto.dsig.SignedInfo si,
javax.xml.crypto.dsig.keyinfo.KeyInfo ki,
java.util.List<? extends javax.xml.crypto.dsig.XMLObject> objs,
java.lang.String id,
java.lang.String signatureValueId) |
Creates a
DOMXMLSignature from the specified co
mponents. |
DOMXMLSignature(org.w3c.dom.Element sigElem,
javax.xml.crypto.XMLCryptoContext context,
java.security.Provider provider) |
Creates a
DOMXMLSignature from XML. |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object o) |
|
java.lang.String |
getId() |
|
javax.xml.crypto.dsig.keyinfo.KeyInfo |
getKeyInfo() |
|
javax.xml.crypto.KeySelectorResult |
getKeySelectorResult() |
|
java.util.List<javax.xml.crypto.dsig.XMLObject> |
getObjects() |
|
javax.xml.crypto.dsig.XMLSignature.SignatureValue |
getSignatureValue() |
|
javax.xml.crypto.dsig.SignedInfo |
getSignedInfo() |
|
int |
hashCode() |
|
void |
marshal(XmlWriter xwriter,
java.lang.String dsPrefix,
javax.xml.crypto.XMLCryptoContext context) |
|
void |
sign(javax.xml.crypto.dsig.XMLSignContext signContext) |
|
boolean |
validate(javax.xml.crypto.dsig.XMLValidateContext vc) |
isFeatureSupported, textOfNodepublic DOMXMLSignature(javax.xml.crypto.dsig.SignedInfo si,
javax.xml.crypto.dsig.keyinfo.KeyInfo ki,
java.util.List<? extends javax.xml.crypto.dsig.XMLObject> objs,
java.lang.String id,
java.lang.String signatureValueId)
DOMXMLSignature from the specified co
mponents.si - the SignedInfoki - the KeyInfo, or null if not specifiedobjs - a list of XMLObjects or null
if not specified. The list is copied to protect against subsequent
modification.id - an optional id (specify null to omit)signatureValueId - an optional id (specify null to
omit)java.lang.NullPointerException - if si is nullpublic DOMXMLSignature(org.w3c.dom.Element sigElem,
javax.xml.crypto.XMLCryptoContext context,
java.security.Provider provider)
throws javax.xml.crypto.MarshalException
DOMXMLSignature from XML.sigElem - Signature elementjavax.xml.crypto.MarshalException - if XMLSignature cannot be unmarshalledpublic java.lang.String getId()
getId in interface javax.xml.crypto.dsig.XMLSignaturepublic javax.xml.crypto.dsig.keyinfo.KeyInfo getKeyInfo()
getKeyInfo in interface javax.xml.crypto.dsig.XMLSignaturepublic javax.xml.crypto.dsig.SignedInfo getSignedInfo()
getSignedInfo in interface javax.xml.crypto.dsig.XMLSignaturepublic java.util.List<javax.xml.crypto.dsig.XMLObject> getObjects()
getObjects in interface javax.xml.crypto.dsig.XMLSignaturepublic javax.xml.crypto.dsig.XMLSignature.SignatureValue getSignatureValue()
getSignatureValue in interface javax.xml.crypto.dsig.XMLSignaturepublic javax.xml.crypto.KeySelectorResult getKeySelectorResult()
getKeySelectorResult in interface javax.xml.crypto.dsig.XMLSignaturepublic 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 validate(javax.xml.crypto.dsig.XMLValidateContext vc)
throws javax.xml.crypto.dsig.XMLSignatureException
validate in interface javax.xml.crypto.dsig.XMLSignaturejavax.xml.crypto.dsig.XMLSignatureExceptionpublic void sign(javax.xml.crypto.dsig.XMLSignContext signContext)
throws javax.xml.crypto.MarshalException,
javax.xml.crypto.dsig.XMLSignatureException
sign in interface javax.xml.crypto.dsig.XMLSignaturejavax.xml.crypto.MarshalExceptionjavax.xml.crypto.dsig.XMLSignatureExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object