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

org.bouncycastle.jsse.provider.X509KeyManagerUtil Maven / Gradle / Ivy

package org.bouncycastle.jsse.provider;

import javax.net.ssl.X509ExtendedKeyManager;
import javax.net.ssl.X509KeyManager;

import org.bouncycastle.jcajce.util.JcaJceHelper;

abstract class X509KeyManagerUtil
{
    static X509ExtendedKeyManager importX509KeyManager(JcaJceHelper helper, X509KeyManager x509KeyManager)
    {
        if (x509KeyManager instanceof X509ExtendedKeyManager)
        {
            return (X509ExtendedKeyManager)x509KeyManager;
        }

        return new ImportX509KeyManager_5(helper, x509KeyManager);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy