protected void activate()

in src/main/java/org/apache/sling/auth/saml2/impl/AuthenticationHandlerSAML2Impl.java [146:164]


    protected void activate(final AuthenticationHandlerSAML2Config config, ComponentContext componentContext)
            throws InvalidKeyException, NoSuchAlgorithmException, IllegalStateException, IOException {
        this.setConfigs(config);
        final File tokenFile = getTokenFile(componentContext.getBundleContext());
        initializeTokenStore(tokenFile);
        if (this.getSaml2SPEncryptAndSign()) {
            //      set encryption keys
            this.idpVerificationCert = VerifySignatureCredentials.getCredential(
                    this.getJksFileLocation(),
                    this.getJksStorePassword().toCharArray(),
                    this.getIdpCertAlias());
            this.spKeypair = KeyPairCredentials.getCredential(
                    this.getJksFileLocation(),
                    this.getJksStorePassword().toCharArray(),
                    this.getSpKeysAlias(),
                    this.getSpKeysPassword().toCharArray());
            //      set credential for signing
        }
    }