public final class DOMXMLSignature extends DOMStructure implements XMLSignature
Modifier and Type | Class and Description |
---|---|
class |
DOMXMLSignature.DOMSignatureValue |
XMLSignature.SignatureValue
XMLNS
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, isFeatureSupported
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isFeatureSupported
public DOMXMLSignature(SignedInfo si, KeyInfo ki, List<? extends XMLObject> objs, String id, String signatureValueId)
DOMXMLSignature
from the specified components.si
- the SignedInfo
ki
- the KeyInfo
, or null
if not specifiedobjs
- a list of XMLObject
s 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 null
public 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 XMLSignature
public KeyInfo getKeyInfo()
getKeyInfo
in interface XMLSignature
public SignedInfo getSignedInfo()
getSignedInfo
in interface XMLSignature
public List<XMLObject> getObjects()
getObjects
in interface XMLSignature
public XMLSignature.SignatureValue getSignatureValue()
getSignatureValue
in interface XMLSignature
public KeySelectorResult getKeySelectorResult()
getKeySelectorResult
in interface XMLSignature
public void marshal(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException
marshal
in class DOMStructure
MarshalException
public void marshal(Node parent, Node nextSibling, String dsPrefix, DOMCryptoContext context) throws MarshalException
MarshalException
public boolean validate(XMLValidateContext vc) throws XMLSignatureException
validate
in interface XMLSignature
XMLSignatureException
public void sign(XMLSignContext signContext) throws MarshalException, XMLSignatureException
sign
in interface XMLSignature
MarshalException
XMLSignatureException
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.