Class CSMessageOrganisationLookup
- java.lang.Object
-
- org.certificateservices.messages.utils.CSMessageOrganisationLookup
-
- All Implemented Interfaces:
XMLSigner.OrganisationLookup
public class CSMessageOrganisationLookup extends java.lang.Object implements XMLSigner.OrganisationLookup
Implementation of Organisation lookup that fins the organisation element in a CS message. Created by philip on 02/01/17.
-
-
Field Summary
-
Fields inherited from interface org.certificateservices.messages.utils.XMLSigner.OrganisationLookup
UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description CSMessageOrganisationLookup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringfindOrganisation(org.w3c.dom.Document doc)Method that should extract the organisiation name from a given xml message.
-
-
-
Method Detail
-
findOrganisation
public java.lang.String findOrganisation(org.w3c.dom.Document doc) throws MessageContentExceptionDescription copied from interface:XMLSigner.OrganisationLookupMethod that should extract the organisiation name from a given xml message.- Specified by:
findOrganisationin interfaceXMLSigner.OrganisationLookup- Parameters:
doc- the document to extract organisation from.- Returns:
- might the organisation found, it might return UNKNWON if supported with used MessageSecurityProvider.
- Throws:
MessageContentException- if organisation couldn't be extracted from message.
-
-