/*
 * Copyright 2018 Scytl Secure Electronic Voting SA
 *
 * All rights reserved
 *
 * See our extended copyright notice in *file 'Copyright.txt' which is part of this source code package
 */
package com.scytl.products.ov.ei.services.domain.service.crypto;

import javax.enterprise.inject.Produces;
import javax.inject.Inject;

import com.scytl.products.ov.commons.crypto.CertificateChainRepository;
import com.scytl.products.ov.commons.crypto.KeystoreForObjectOpener;

/**
 *
 */
public class CertificateChainRepositoryProducer {

    @Inject
    @ElectionInformationKeystoreOpener
    private KeystoreForObjectOpener keystoreOpener;

    @Produces
    public CertificateChainRepository getInstance() {
        return new CertificateChainRepository(keystoreOpener);
    }
}
