All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.dentrassi.crypto.pem.PemConfigKeyStore Maven / Gradle / Ivy

Go to download

This artifact provides a single jar that contains all classes required to use remote EJB and JMS, including all dependencies. It is intended for use by those not using maven, maven users should just import the EJB and JMS BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up with different versions on classes on the class path).

The newest version!
/*
 * Copyright (c) 2018, 2019 Red Hat Inc and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Jens Reimann - initial API and implementation
 */

package de.dentrassi.crypto.pem;

import java.io.IOException;
import java.io.InputStream;
import java.security.cert.CertificateException;
import java.util.Map;

public final class PemConfigKeyStore {

    private PemConfigKeyStore() {
    }

    public static final class Immutable extends AbstractReadOnlyKeyStore {

        @Override
        protected Map load(final InputStream stream) throws CertificateException, IOException {
            return PemUtils.loadFromConfiguration(stream);
        }

    }

    public static final class Mutable extends AbstractMutablePemKeyStore {

        @Override
        protected Map load(final InputStream stream) throws CertificateException, IOException {
            return PemUtils.loadFromConfiguration(stream);
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy