private void activate()

in src/main/java/org/apache/sling/commons/crypto/jasypt/internal/JasyptRandomIvGeneratorRegistrar.java [64:73]


    private void activate(final JasyptRandomIvGeneratorRegistrarConfiguration configuration, final BundleContext bundleContext) {
        logger.debug("activating");
        final String algorithm = configuration.algorithm();
        final RandomIvGenerator ivGenerator = new RandomIvGenerator(algorithm);
        @SuppressWarnings("java:S1149")
        final Dictionary<String, String> properties = new Hashtable<>();
        properties.put("algorithm", algorithm);
        logger.debug("registering Random IV Generator with algorithm {}", algorithm);
        serviceRegistration = bundleContext.registerService(IvGenerator.class, ivGenerator, properties);
    }