|
||||||||||
| 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 | |
|---|---|
Document |
getOriginalDocument(Document signedDocument)
getOriginalDocument |
Node |
getOriginalNode(Document signedDocument)
Returns the node that is the root node of the original signedDocument |
boolean |
hasValidSignature(Document doc)
hasValidSignature |
Document |
sign(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(@Nonnull
X509Support x509Support)
Constructor for XmlSignatureSupport.
x509Support - a X509Support object.| Method Detail |
|---|
public Document sign(@Nonnull
Document xmlDocument)
sign
xmlDocument - a Document object.
Document object.
public boolean hasValidSignature(@Nonnull
Document doc)
throws Exception
hasValidSignature
doc - a Document object.
Exception - if any.
@Nonnull
public Node getOriginalNode(@Nonnull
Document signedDocument)
signedDocument - the signed signedDocument
@Nonnull
public Document getOriginalDocument(@Nonnull
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 | |||||||||