org.neuclear.xml.xmlsec
Class SignedElement
java.lang.Object
org.neuclear.xml.AbstractElementProxy
org.neuclear.xml.xmlsec.SignedElement
- All Implemented Interfaces:
- ElementProxy
public class SignedElement
- extends AbstractElementProxy
|
Method Summary |
XMLSignature |
getXMLSignature()
The signature for this object. |
boolean |
isSigned()
Checks if a SignedNamedObject contains a signature.
IMPORTANT: True only indicates that it contains a signature, not that it is valid. |
protected void |
preSign()
This is called before signing to handle any pre signing tasks such as time stamps. |
void |
sign(org.neuclear.commons.crypto.signers.BrowsableSigner signer)
|
void |
sign(java.lang.String name,
org.neuclear.commons.crypto.signers.Signer signer)
|
boolean |
verify()
|
| Methods inherited from class org.neuclear.xml.AbstractElementProxy |
addElement, addElement, addElement, addElement, addElement, addLineBreak, asXML, canonicalize, createAttribute, createQName, getElement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SignedElement
public SignedElement(org.dom4j.QName qname)
SignedElement
protected SignedElement(java.lang.String name)
SignedElement
public SignedElement(org.dom4j.Element elem)
throws XMLSecurityException
- Throws:
XMLSecurityException
SignedElement
public SignedElement(java.lang.String name,
org.dom4j.Namespace ns)
SignedElement
public SignedElement(java.lang.String name,
java.lang.String prefix,
java.lang.String nsURI)
preSign
protected void preSign()
throws XMLSecurityException
- This is called before signing to handle any pre signing tasks such as time stamps.
- Throws:
XMLSecurityException
isSigned
public final boolean isSigned()
- Checks if a SignedNamedObject contains a signature.
IMPORTANT: True only indicates that it contains a signature, not that it is valid.
getXMLSignature
public final XMLSignature getXMLSignature()
throws XMLSecurityException
- The signature for this object. This must match the allowed signers for the parent namespace
- Returns:
- An XMLSignature objects
- Throws:
XMLSecurityException
verify
public boolean verify()
throws XMLSecurityException
- Throws:
XMLSecurityException
sign
public final void sign(java.lang.String name,
org.neuclear.commons.crypto.signers.Signer signer)
throws XMLSecurityException,
org.neuclear.commons.crypto.passphraseagents.UserCancellationException,
org.neuclear.commons.crypto.signers.NonExistingSignerException
- Throws:
XMLSecurityException
org.neuclear.commons.crypto.passphraseagents.UserCancellationException
org.neuclear.commons.crypto.signers.NonExistingSignerException
sign
public final void sign(org.neuclear.commons.crypto.signers.BrowsableSigner signer)
throws XMLSecurityException,
org.neuclear.commons.crypto.passphraseagents.UserCancellationException
- Throws:
XMLSecurityException
org.neuclear.commons.crypto.passphraseagents.UserCancellationException
Copyright © 2002-2004 Antilles Software Ventures SA. All Rights Reserved.