@ParamAttribute(name = "authenticationID") String authenticationID,
@ParamAttribute(name = "config") String config,
@ParamSpecial(type = SpecialAttributeType.classLoader) ClassLoader classLoader) throws AuthException, JAXBException, IOException, ParserConfigurationException, SAXException, XMLStreamException {
ClassLoaderLookup classLoaderLookup = new ConstantClassLoaderLookup(classLoader);
AuthConfigFactory authConfigFactory = AuthConfigFactory.getFactory();
AuthModuleType<ClientAuthModule> clientAuthModuleType = JaspiXmlUtil.loadClientAuthModule(new StringReader(config));
AuthConfigProvider authConfigProvider = JaspiUtil.wrapClientAuthModule(messageLayer, appContext, authenticationID, clientAuthModuleType, true, classLoaderLookup);
registrationID = authConfigFactory.registerConfigProvider(authConfigProvider, messageLayer, appContext, null);
}