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

de.dentrassi.crypto.pem.PemKeyStore 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).

There is a newer version: 34.0.0.Final
Show 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.NoSuchAlgorithmException;
import java.security.cert.CertificateException;
import java.util.Map;

public final class PemKeyStore {

    private PemKeyStore() {
    }

    public final static class Immutable extends AbstractReadOnlyKeyStore {

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

    }

    public final static class Mutable extends AbstractMutablePemKeyStore {

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy