Class 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String findOrganisation​(org.w3c.dom.Document doc)
      Method that should extract the organisiation name from a given xml message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CSMessageOrganisationLookup

        public CSMessageOrganisationLookup()
    • Method Detail

      • findOrganisation

        public java.lang.String findOrganisation​(org.w3c.dom.Document doc)
                                          throws MessageContentException
        Description copied from interface: XMLSigner.OrganisationLookup
        Method that should extract the organisiation name from a given xml message.
        Specified by:
        findOrganisation in interface XMLSigner.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.