XMLSignature
, XMLStructure
public final class DOMXMLSignature extends DOMStructure implements XMLSignature
Modifier and Type | Class | Description |
---|---|---|
class |
DOMXMLSignature.DOMSignatureValue |
XMLSignature.SignatureValue
XMLNS
Constructor | Description |
---|---|
DOMXMLSignature(SignedInfo si,
KeyInfo ki,
List<? extends XMLObject> objs,
String id,
String signatureValueId) |
Creates a
DOMXMLSignature from the specified components. |
DOMXMLSignature(Element sigElem,
XMLCryptoContext context,
Provider provider) |
Creates a
DOMXMLSignature from XML. |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
String |
getId() |
|
KeyInfo |
getKeyInfo() |
|
KeySelectorResult |
getKeySelectorResult() |
|
List<XMLObject> |
getObjects() |
|
XMLSignature.SignatureValue |
getSignatureValue() |
|
SignedInfo |
getSignedInfo() |
|
int |
hashCode() |
|
void |
marshal(XmlWriter xwriter,
String dsPrefix,
XMLCryptoContext context) |
|
void |
sign(XMLSignContext signContext) |
|
boolean |
validate(XMLValidateContext vc) |
isFeatureSupported, textOfNode
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(XmlWriter xwriter, String dsPrefix, XMLCryptoContext context) throws MarshalException
marshal
in class DOMStructure
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–2018 The Apache Software Foundation. All rights reserved.