public final class DOMXMLSignature extends DOMStructure implements XMLSignature
| Modifier and Type | Class and Description |
|---|---|
class |
DOMXMLSignature.DOMSignatureValue |
XMLSignature.SignatureValueXMLNS| Constructor and Description |
|---|
DOMXMLSignature(Element sigElem,
XMLCryptoContext context,
Provider provider)
Creates a
DOMXMLSignature from XML. |
DOMXMLSignature(SignedInfo si,
KeyInfo ki,
List<? extends XMLObject> objs,
String id,
String signatureValueId)
Creates a
DOMXMLSignature from the specified components. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getId() |
KeyInfo |
getKeyInfo() |
KeySelectorResult |
getKeySelectorResult() |
List<XMLObject> |
getObjects() |
XMLSignature.SignatureValue |
getSignatureValue() |
SignedInfo |
getSignedInfo() |
int |
hashCode() |
void |
marshal(Node parent,
Node nextSibling,
String dsPrefix,
DOMCryptoContext context) |
void |
marshal(Node parent,
String dsPrefix,
DOMCryptoContext context) |
void |
sign(XMLSignContext signContext) |
boolean |
validate(XMLValidateContext vc) |
equalsContent, isFeatureSupportedclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisFeatureSupportedpublic DOMXMLSignature(SignedInfo si, KeyInfo ki, List<? extends XMLObject> objs, String id, String signatureValueId)
DOMXMLSignature from the specified components.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)NullPointerException - if si is nullpublic DOMXMLSignature(Element sigElem, XMLCryptoContext context, Provider provider) throws MarshalException
DOMXMLSignature from XML.sigElem - Signature elementMarshalException - if XMLSignature cannot be unmarshalledpublic String getId()
getId in interface XMLSignaturepublic KeyInfo getKeyInfo()
getKeyInfo in interface XMLSignaturepublic SignedInfo getSignedInfo()
getSignedInfo in interface XMLSignaturepublic List<XMLObject> getObjects()
getObjects in interface XMLSignaturepublic XMLSignature.SignatureValue getSignatureValue()
getSignatureValue in interface XMLSignaturepublic KeySelectorResult getKeySelectorResult()
getKeySelectorResult in interface XMLSignaturepublic void marshal(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException
marshal in class DOMStructureMarshalExceptionpublic void marshal(Node parent, Node nextSibling, String dsPrefix, DOMCryptoContext context) throws MarshalException
MarshalExceptionpublic boolean validate(XMLValidateContext vc) throws XMLSignatureException
validate in interface XMLSignatureXMLSignatureExceptionpublic void sign(XMLSignContext signContext) throws MarshalException, XMLSignatureException
sign in interface XMLSignatureMarshalExceptionXMLSignatureExceptionCopyright © 2000–2020 The Apache Software Foundation. All rights reserved.