Tabnine Logo
SslConfig.isEmpty
Code IndexAdd Tabnine to your IDE (free)

How to use
isEmpty
method
in
org.ldaptive.ssl.SslConfig

Best Java code snippets using org.ldaptive.ssl.SslConfig.isEmpty (Showing top 13 results out of 315)

origin: com.floragunn/ldaptive

/**
 * Returns an instance of this socket factory configured with a hostname verifying trust manager. If the supplied ssl
 * config does not contain trust managers, {@link HostnameVerifyingTrustManager} with {@link DefaultHostnameVerifier}
 * is set. See {@link #addHostnameVerifyingTrustManager(SslConfig, String[])}.
 *
 * @param  config  to set on the socket factory
 * @param  names  to use for hostname verification
 *
 * @return  socket factory
 */
public static SSLSocketFactory getHostnameVerifierFactory(final SslConfig config, final String[] names)
{
 final ThreadLocalTLSSocketFactory sf = new ThreadLocalTLSSocketFactory();
 if (config != null && !config.isEmpty()) {
  sf.setSslConfig(SslConfig.newSslConfig(config));
 } else {
  sf.setSslConfig(new SslConfig());
 }
 addHostnameVerifyingTrustManager(sf.getSslConfig(), names);
 try {
  sf.initialize();
 } catch (GeneralSecurityException e) {
  throw new IllegalArgumentException(e);
 }
 return sf;
}
origin: com.floragunn/ldaptive

/**
 * Returns an instance of this socket factory configured with a hostname verifying trust manager. If the supplied ssl
 * config does not contain trust managers, {@link HostnameVerifyingTrustManager} with {@link DefaultHostnameVerifier}
 * is set. See {@link #addHostnameVerifyingTrustManager(SslConfig, String[])}.
 *
 * @param  config  to set on the socket factory
 * @param  names  to use for hostname verification
 *
 * @return  socket factory
 */
@SuppressWarnings("RedundantArrayCreation")
public static SSLSocketFactory getHostnameVerifierFactory(final SslConfig config, final String[] names)
{
 final TLSSocketFactory sf = new TLSSocketFactory();
 if (config != null && !config.isEmpty()) {
  sf.setSslConfig(SslConfig.newSslConfig(config));
 } else {
  sf.setSslConfig(new SslConfig());
 }
 addHostnameVerifyingTrustManager(sf.getSslConfig(), names);
 try {
  sf.initialize();
 } catch (GeneralSecurityException e) {
  throw new IllegalArgumentException(e);
 }
 return sf;
}
origin: com.floragunn/ldaptive

if (factory == null && cc.getSslConfig() != null && !cc.getSslConfig().isEmpty()) {
 final TLSSocketFactory sf = new TLSSocketFactory();
 sf.setSslConfig(cc.getSslConfig());
origin: vt-middleware/ldaptive

if (factory == null && cc.getSslConfig() != null && !cc.getSslConfig().isEmpty()) {
 final TLSSocketFactory sf = new TLSSocketFactory();
 sf.setSslConfig(SslConfig.newSslConfig(cc.getSslConfig()));
if (verifier == null && cc.getSslConfig() != null && !cc.getSslConfig().isEmpty()) {
 if (cc.getSslConfig().getHostnameVerifier() != null) {
  verifier = new HostnameVerifierAdapter(cc.getSslConfig().getHostnameVerifier());
origin: org.ldaptive/ldaptive

if (factory == null && cc.getSslConfig() != null && !cc.getSslConfig().isEmpty()) {
 final TLSSocketFactory sf = new TLSSocketFactory();
 sf.setSslConfig(SslConfig.newSslConfig(cc.getSslConfig()));
if (verifier == null && cc.getSslConfig() != null && !cc.getSslConfig().isEmpty()) {
 if (cc.getSslConfig().getHostnameVerifier() != null) {
  verifier = new HostnameVerifierAdapter(cc.getSslConfig().getHostnameVerifier());
origin: org.ldaptive/ldaptive

if (config != null && !config.isEmpty()) {
 sf.setSslConfig(SslConfig.newSslConfig(config));
} else {
origin: vt-middleware/ldaptive

if (config != null && !config.isEmpty()) {
 sf.setSslConfig(SslConfig.newSslConfig(config));
} else {
origin: vt-middleware/ldaptive

if (config != null && !config.isEmpty()) {
 sf.setSslConfig(SslConfig.newSslConfig(config));
} else {
origin: org.ldaptive/ldaptive

if (config != null && !config.isEmpty()) {
 sf.setSslConfig(SslConfig.newSslConfig(config));
} else {
origin: org.ldaptive/ldaptive

if (!sc.isEmpty()) {
 object.setSslConfig(sc);
origin: com.floragunn/ldaptive

if (!sc.isEmpty()) {
 object.setSslConfig(sc);
origin: vt-middleware/ldaptive

if (!sc.isEmpty()) {
 object.setSslConfig(sc);
origin: org.ldaptive/ldaptive-apache

if (cc.getSslConfig() != null && !cc.getSslConfig().isEmpty()) {
 final CredentialConfig credConfig = cc.getSslConfig().getCredentialConfig();
 final TrustManager[] managers = cc.getSslConfig().getTrustManagers();
org.ldaptive.sslSslConfigisEmpty

Javadoc

Returns whether this ssl config contains any configuration data.

Popular methods of SslConfig

  • <init>
    Creates a new ssl config.
  • getCredentialConfig
    Returns the credential config.
  • getEnabledCipherSuites
    Returns the names of the SSL cipher suites to use for secure connections.
  • getEnabledProtocols
    Returns the names of the SSL protocols to use for secure connections.
  • getTrustManagers
    Returns the trust managers.
  • checkImmutable
  • getHandshakeCompletedListeners
    Returns the handshake completed listeners to use for secure connections.
  • getHostnameVerifier
    Returns the hostname verifier.
  • newSslConfig
    Returns a ssl config initialized with the supplied config.
  • setCredentialConfig
    Sets the credential config.
  • setEnabledCipherSuites
    Sets the SSL cipher suites to use for secure connections.
  • setEnabledProtocols
    Sets the SSL protocol versions to use for secure connections.
  • setEnabledCipherSuites,
  • setEnabledProtocols,
  • setHandshakeCompletedListeners,
  • setTrustManagers,
  • getHostnameVerifierConfig,
  • setHostnameVerifier,
  • setHostnameVerifierConfig

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • setScale (BigDecimal)
  • getContentResolver (Context)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Table (org.hibernate.mapping)
    A relational table
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now