Class DSS1CoreMessageParser.DSS1CoreSignatureLocationFinder
- java.lang.Object
-
- org.certificateservices.messages.dss1.core.DSS1CoreMessageParser.DSS1CoreSignatureLocationFinder
-
- All Implemented Interfaces:
XMLSigner.SignatureLocationFinder
- Enclosing class:
- DSS1CoreMessageParser
public static class DSS1CoreMessageParser.DSS1CoreSignatureLocationFinder extends java.lang.Object implements XMLSigner.SignatureLocationFinder
-
-
Constructor Summary
Constructors Constructor Description DSS1CoreSignatureLocationFinder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetIDAttribute()java.lang.StringgetIDValue(org.w3c.dom.Element signedElement)java.util.List<javax.xml.namespace.QName>getSiblingsBeforeSignature(org.w3c.dom.Element element)Method that should return the possible siblings that should be placed before the signature element in the specified element.org.w3c.dom.Element[]getSignatureLocations(org.w3c.dom.Document doc)Return the element inside a document that should be signed.
-
-
-
Method Detail
-
getSignatureLocations
public org.w3c.dom.Element[] getSignatureLocations(org.w3c.dom.Document doc) throws MessageContentExceptionDescription copied from interface:XMLSigner.SignatureLocationFinderReturn the element inside a document that should be signed.- Specified by:
getSignatureLocationsin interfaceXMLSigner.SignatureLocationFinder- Throws:
MessageContentException
-
getIDAttribute
public java.lang.String getIDAttribute()
- Specified by:
getIDAttributein interfaceXMLSigner.SignatureLocationFinder- Returns:
- the name of the ID attribute referenced by the envelope signature.
-
getIDValue
public java.lang.String getIDValue(org.w3c.dom.Element signedElement) throws MessageContentException- Specified by:
getIDValuein interfaceXMLSigner.SignatureLocationFinder- Parameters:
signedElement- the element that should be signed, and ID value for should be fetched.- Returns:
- the signature reference ID value
- Throws:
MessageContentException
-
getSiblingsBeforeSignature
public java.util.List<javax.xml.namespace.QName> getSiblingsBeforeSignature(org.w3c.dom.Element element) throws MessageContentExceptionDescription copied from interface:XMLSigner.SignatureLocationFinderMethod that should return the possible siblings that should be placed before the signature element in the specified element. If a specified sibling isn't found should the next be used.- Specified by:
getSiblingsBeforeSignaturein interfaceXMLSigner.SignatureLocationFinder- Parameters:
element- the element about to be signed and those siblings should be found.- Returns:
- a list of siblings that should be before signature, if the first doesn't exist due to optional is the next in list use. return null to place signature last in element.
- Throws:
MessageContentException- if problems was found with the supplied element
-
-