/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.util.Functions$UnaryVoid
 */
package com.l7tech.server.security.keystore.generic;

import com.l7tech.util.Functions;
import java.io.IOException;
import java.io.InputStream;
import java.security.KeyStore;
import java.security.NoSuchAlgorithmException;
import java.security.cert.CertificateException;

class a
implements Functions.UnaryVoid<InputStream> {
    final KeyStore val$keystore;
    final char[] val$keystorePassword;

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    a(KeyStore keyStore, char[] cArray) {
        this.val$keystore = keyStore;
        this.val$keystorePassword = cArray;
    }

    public void call(InputStream inputStream) {
        try {
            this.val$keystore.load(inputStream, this.val$keystorePassword);
        }
        catch (IOException iOException) {
            throw new RuntimeException(iOException);
        }
        catch (NoSuchAlgorithmException noSuchAlgorithmException) {
            throw new RuntimeException(noSuchAlgorithmException);
        }
        catch (CertificateException certificateException) {
            throw new RuntimeException(certificateException);
        }
    }
}

