org.bouncycastle.jsse.provider.ContextData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bctls-fips Show documentation
Show all versions of bctls-fips Show documentation
The Bouncy Castle Java APIs for the TLS, including a JSSE provider. The APIs are designed primarily to be used in conjunction with the BC FIPS provider. The APIs may also be used with other providers although if being used in a FIPS context it is the responsibility of the user to ensure that any other providers used are FIPS certified and used appropriately.
package org.bouncycastle.jsse.provider;
import javax.net.ssl.X509KeyManager;
import javax.net.ssl.X509TrustManager;
import org.bouncycastle.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 - 2024 Weber Informatics LLC | Privacy Policy