Top Description Fields Constructors Methods
org.bouncycastle.est.jcajce

pack-priv Class SSLSocketFactoryCreatorBuilder

extends Object
Class Inheritance
Imports
java.security.KeyManagementException, .NoSuchAlgorithmException, .NoSuchProviderException, .Provider, .SecureRandom, .Security, javax.net.ssl.KeyManager, .SSLContext, .SSLSocketFactory, .X509TrustManager

A basic builder to allow configuration of an SSLContext used to create an SSLSocketFactory.

Field Summary

Modifier and TypeField and Description
protected KeyManager[]
protected SecureRandom
protected Provider
protected String
protected X509TrustManager[]

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public SSLSocketFactoryCreator
public SSLSocketFactoryCreatorBuilder
public SSLSocketFactoryCreatorBuilder
withKeyManagers(KeyManager[] keyManagers)

public SSLSocketFactoryCreatorBuilder

Returns:

the current builder instance.
withProvider
(String
the name JSSE Provider to use.
tlsProviderName
)

Configure this builder to use the provider with the passed in name.

public SSLSocketFactoryCreatorBuilder

Returns:

the current builder instance.
withProvider
(Provider
the JSSE Provider to use.
tlsProvider
)

Configure this builder to use the passed in provider.

public SSLSocketFactoryCreatorBuilder
public SSLSocketFactoryCreatorBuilder
withTLSVersion(String tlsVersion)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

keyManagersback to summary
protected KeyManager[] keyManagers
secureRandomback to summary
protected SecureRandom secureRandom
tlsProviderback to summary
protected Provider tlsProvider
tlsVersionback to summary
protected String tlsVersion
trustManagersback to summary
protected X509TrustManager[] trustManagers

Constructor Detail

SSLSocketFactoryCreatorBuilderback to summary
public SSLSocketFactoryCreatorBuilder(X509TrustManager trustManager)
SSLSocketFactoryCreatorBuilderback to summary
public SSLSocketFactoryCreatorBuilder(X509TrustManager[] trustManagers)

Method Detail

buildback to summary
public SSLSocketFactoryCreator build()
withKeyManagerback to summary
public SSLSocketFactoryCreatorBuilder withKeyManager(KeyManager keyManager)
withKeyManagersback to summary
public SSLSocketFactoryCreatorBuilder withKeyManagers(KeyManager[] keyManagers)
withProviderback to summary
public SSLSocketFactoryCreatorBuilder withProvider(String tlsProviderName) throws NoSuchProviderException

Configure this builder to use the provider with the passed in name.

Parameters
tlsProviderName:String

the name JSSE Provider to use.

Returns:SSLSocketFactoryCreatorBuilder

the current builder instance.

Exceptions
NoSuchProviderException:
if the specified provider does not exist.
withProviderback to summary
public SSLSocketFactoryCreatorBuilder withProvider(Provider tlsProvider)

Configure this builder to use the passed in provider.

Parameters
tlsProvider:Provider

the JSSE Provider to use.

Returns:SSLSocketFactoryCreatorBuilder

the current builder instance.

withSecureRandomback to summary
public SSLSocketFactoryCreatorBuilder withSecureRandom(SecureRandom secureRandom)
withTLSVersionback to summary
public SSLSocketFactoryCreatorBuilder withTLSVersion(String tlsVersion)