Interface SAMLParserCustomisations


  • public interface SAMLParserCustomisations
    Interface for extending the XML schemas and namespaces used when parsing and generating SAML XML. Created by philip on 07/01/17.
    • Method Detail

      • getCustomJAXBClasspath

        java.lang.String getCustomJAXBClasspath()
        Returns:
        a ":" separated JAXB classpath for all custom schemas that should be marshalled using JAXB.
      • getCustomSchemaLocations

        java.lang.String[] getCustomSchemaLocations()
        Returns:
        the resource as stream path to related custom schema XSD
      • lookupSchemaForElement

        java.lang.String lookupSchemaForElement​(java.lang.String type,
                                                java.lang.String namespaceURI,
                                                java.lang.String publicId,
                                                java.lang.String systemId,
                                                java.lang.String baseURI)
        Method to find Schema for a specific customized element related to the custom schema locations.
        Parameters:
        type - The type of the resource being resolved. For XML [XML 1.0] resources (i.e. entities), applications must use the value "http://www.w3.org/TR/REC-xml". For XML Schema [XML Schema Part 1], applications must use the value "http://www.w3.org/2001/XMLSchema". Other types of resources are outside the scope of this specification and therefore should recommend an absolute URI in order to use this method.
        namespaceURI - The namespace of the resource being resolved, e.g. the target namespace of the XML Schema [XML Schema Part 1] when resolving XML Schema resources.
        publicId - The public identifier of the external entity being referenced, or null if no public identifier was supplied or if the resource is not an entity.
        systemId - The system identifier, a URI reference [IETF RFC 2396], of the external resource being referenced, or null if no system identifier was supplied.
        baseURI - The absolute base URI of the resource being parsed, or null if there is no base URI.
        Returns:
        the resource as stream path to related schema XSD, or null if no matching found.