public void start()

in src/main/java/org/apache/sling/auth/saml2/Activator.java [45:63]


    public void start(BundleContext context) throws IOException, InvalidSyntaxException {
        // Classloading
        BundleWiring bundleWiring = context.getBundle().adapt(BundleWiring.class);
        ClassLoader loader = bundleWiring.getClassLoader();
        Thread thread = Thread.currentThread();
        thread.setContextClassLoader(InitializationService.class.getClassLoader());
        try {
            initializeOpenSaml();
        } catch (InitializationException e) {
            throw new SAML2RuntimeException("Java Cryptographic Extension could not initialize. " +
                    "This happens when JCE implementation is incomplete, and not meeting OpenSAML standards.", e);
        } finally {
            thread.setContextClassLoader(loader);
        }
        setConfigAdmin(context);
        if ( needsSamlJaas()){
            configureSamlJaas();
        }
    }