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

org.spongycastle.jsse.provider.ContextData Maven / Gradle / Ivy

Go to download

Spongy Castle is a package-rename (org.bouncycastle.* to org.spongycastle.*) of Bouncy Castle intended for the Android platform. Android unfortunately ships with a stripped-down version of Bouncy Castle, which prevents easy upgrades - Spongy Castle overcomes this and provides a full, up-to-date version of the Bouncy Castle cryptographic libs.

The newest version!
package org.spongycastle.jsse.provider;

import javax.net.ssl.X509KeyManager;
import javax.net.ssl.X509TrustManager;

import org.spongycastle.tls.crypto.TlsCrypto;

final class ContextData
{
    private final TlsCrypto crypto;
    private final X509KeyManager km;
    private final X509TrustManager tm;
    private final ProvSSLSessionContext clientSessionContext;
    private final ProvSSLSessionContext serverSessionContext;

    ContextData(TlsCrypto crypto, X509KeyManager km, X509TrustManager tm, ProvSSLSessionContext clientSessionContext,
        ProvSSLSessionContext serverSessionContext)
    {
        this.crypto = crypto;
        this.km = km;
        this.tm = tm;
        this.clientSessionContext = clientSessionContext;
        this.serverSessionContext = serverSessionContext;
    }

    ProvSSLSessionContext getClientSessionContext()
    {
        return clientSessionContext;
    }
    
    TlsCrypto getCrypto()
    {
        return crypto;
    }

    X509KeyManager getKeyManager()
    {
        return km;
    }

    ProvSSLSessionContext getServerSessionContext()
    {
        return serverSessionContext;
    }

    X509TrustManager getTrustManager()
    {
        return tm;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy