|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cedarsoft.crypt.xml.XmlSignatureSupport
public class XmlSignatureSupport
Easy support for xml signatures.
Be carefull! The DocumentBuilderFactory has to be namespace aware
(DocumentBuilderFactory.setNamespaceAware(boolean)).
| Constructor Summary | |
|---|---|
XmlSignatureSupport(X509Support x509Support)
Constructor for XmlSignatureSupport. |
|
| Method Summary | |
|---|---|
org.w3c.dom.Document |
getOriginalDocument(org.w3c.dom.Document signedDocument)
getOriginalDocument |
org.w3c.dom.Node |
getOriginalNode(org.w3c.dom.Document signedDocument)
Returns the node that is the root node of the original signedDocument |
boolean |
hasValidSignature(org.w3c.dom.Document doc)
hasValidSignature |
org.w3c.dom.Document |
sign(org.w3c.dom.Document xmlDocument)
sign |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject
public XmlSignatureSupport(@NotNull
X509Support x509Support)
Constructor for XmlSignatureSupport.
x509Support - a X509Support object.| Method Detail |
|---|
public org.w3c.dom.Document sign(@NotNull
org.w3c.dom.Document xmlDocument)
sign
xmlDocument - a Document object.
Document object.
public boolean hasValidSignature(@NotNull
org.w3c.dom.Document doc)
throws java.lang.Exception
hasValidSignature
doc - a Document object.
java.lang.Exception - if any.
@NotNull
public org.w3c.dom.Node getOriginalNode(@NotNull
org.w3c.dom.Document signedDocument)
signedDocument - the signed signedDocument
@NotNull
public org.w3c.dom.Document getOriginalDocument(@NotNull
org.w3c.dom.Document signedDocument)
getOriginalDocument
signedDocument - a Document object.
Document object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||