Codota Logo
SSLUtils
Code IndexAdd Codota to your IDE (free)

How to use
SSLUtils
in
org.wildfly.security.ssl

Best Java code snippets using org.wildfly.security.ssl.SSLUtils (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: wildfly/wildfly

SecurityFactory<X509TrustManager> getX509TrustManagerFactory() {
  return trustManagerFactory == null ? SSLUtils.getDefaultX509TrustManagerSecurityFactory() : trustManagerFactory;
}
origin: wildfly/wildfly

/**
 * Create a configured SSL context from an outside SSL context.
 *
 * @param original the original SSL context
 * @param sslConfigurator the SSL configurator
 * @return the configured SSL context
 */
public static SSLContext createConfiguredSslContext(SSLContext original, final SSLConfigurator sslConfigurator) {
  return createConfiguredSslContext(original, sslConfigurator, true);
}
origin: wildfly/wildfly

/**
 * Create an {@code SNIMatcher} which matches SNI host names that are equal to the given (ASCII) string.
 *
 * @param string the host name string (must not be {@code null})
 * @return the SNI matcher (not {@code null})
 * @see IDN
 */
public static SNIMatcher createHostNameStringSNIMatcher(String string) {
  Assert.checkNotNullParam("string", string);
  return createHostNameStringPredicateSNIMatcher(string::equals);
}
origin: wildfly/wildfly

/**
 * Create an SSL context factory which locates the best context by searching the preferred providers in order using
 * the rules established in the given protocol selector.  If there are no matches, a factory is returned which
 *
 * @param protocolSelector the protocol selector
 * @param providerSupplier the provider supplier
 * @return the SSL context factory
 */
public static SecurityFactory<SSLContext> createSslContextFactory(ProtocolSelector protocolSelector, Supplier<Provider[]> providerSupplier) {
  return createSslContextFactory(protocolSelector, providerSupplier, null);
}
origin: wildfly/wildfly

final SecurityFactory<SSLContext> sslContextFactory = SSLUtils.createSslContextFactory(protocolSelector, providerSupplier, providerName);
origin: wildfly/wildfly

/**
 * Construct a new instance.
 *
 * @param delegate the delegate SASL server factory
 * @param trustManager the trust manager to use or {@code null} if the default trust manager should be used
 */
public TrustManagerSaslServerFactory(final SaslServerFactory delegate, final X509TrustManager trustManager) {
  super(delegate);
  if (trustManager == null) {
    this.trustManagerFactory = SSLUtils.getDefaultX509TrustManagerSecurityFactory();
  } else {
    this.trustManagerFactory = new FixedSecurityFactory<>(trustManager);
  }
}
origin: wildfly/wildfly

/**
 * Create an {@code SNIMatcher} which matches SNI host name strings which end with the given suffix.
 *
 * @param suffix the suffix to match (must not be {@code null} or empty)
 * @return the SNI matcher (not {@code null})
 */
public static SNIMatcher createHostNameSuffixSNIMatcher(String suffix) {
  Assert.checkNotNullParam("suffix", suffix);
  Assert.checkNotEmptyParam("suffix", suffix);
  final String finalSuffix = suffix.startsWith(".") ? suffix : "." + suffix;
  return createHostNameStringPredicateSNIMatcher(n -> n.endsWith(finalSuffix));
}
origin: org.wildfly.security/wildfly-elytron

/**
 * Create an SSL context factory which locates the best context by searching the preferred providers in order using
 * the rules established in the given protocol selector.  If there are no matches, a factory is returned which
 *
 * @param protocolSelector the protocol selector
 * @param providerSupplier the provider supplier
 * @return the SSL context factory
 */
public static SecurityFactory<SSLContext> createSslContextFactory(ProtocolSelector protocolSelector, Supplier<Provider[]> providerSupplier) {
  return createSslContextFactory(protocolSelector, providerSupplier, null);
}
origin: wildfly/wildfly

/**
 * Create a configured SSL context factory from an outside SSL context.  The returned factory will create new instances
 * for every call, so it might be necessary to wrap with a {@link OneTimeSecurityFactory} instance.
 *
 * @param originalFactory the original SSL context factory
 * @param sslConfigurator the SSL configurator
 * @return the configured SSL context
 */
public static SecurityFactory<SSLContext> createConfiguredSslContextFactory(SecurityFactory<SSLContext> originalFactory, final SSLConfigurator sslConfigurator) {
  return () -> createConfiguredSslContext(originalFactory.create(), sslConfigurator);
}
origin: org.wildfly.security/wildfly-elytron

SecurityFactory<X509TrustManager> getX509TrustManagerFactory() {
  return trustManagerFactory == null ? SSLUtils.getDefaultX509TrustManagerSecurityFactory() : trustManagerFactory;
}
origin: org.wildfly.security/wildfly-elytron

/**
 * Create an {@code SNIMatcher} which matches SNI host names that are equal to the given (ASCII) string.
 *
 * @param string the host name string (must not be {@code null})
 * @return the SNI matcher (not {@code null})
 * @see IDN
 */
public static SNIMatcher createHostNameStringSNIMatcher(String string) {
  Assert.checkNotNullParam("string", string);
  return createHostNameStringPredicateSNIMatcher(string::equals);
}
origin: org.wildfly.security/wildfly-elytron-ssl

/**
 * Create an SSL context factory which locates the best context by searching the preferred providers in order using
 * the rules established in the given protocol selector.  If there are no matches, a factory is returned which
 *
 * @param protocolSelector the protocol selector
 * @param providerSupplier the provider supplier
 * @return the SSL context factory
 */
public static SecurityFactory<SSLContext> createSslContextFactory(ProtocolSelector protocolSelector, Supplier<Provider[]> providerSupplier) {
  return createSslContextFactory(protocolSelector, providerSupplier, null);
}
origin: org.wildfly.security/wildfly-elytron

/**
 * Create a configured SSL context from an outside SSL context.
 *
 * @param original the original SSL context
 * @param sslConfigurator the SSL configurator
 * @return the configured SSL context
 */
public static SSLContext createConfiguredSslContext(SSLContext original, final SSLConfigurator sslConfigurator) {
  return createConfiguredSslContext(original, sslConfigurator, true);
}
origin: org.wildfly.security/wildfly-elytron-client

SecurityFactory<X509TrustManager> getX509TrustManagerFactory() {
  return trustManagerFactory == null ? SSLUtils.getDefaultX509TrustManagerSecurityFactory() : trustManagerFactory;
}
origin: org.jboss.eap/wildfly-client-all

/**
 * Create an {@code SNIMatcher} which matches SNI host names that are equal to the given (ASCII) string.
 *
 * @param string the host name string (must not be {@code null})
 * @return the SNI matcher (not {@code null})
 * @see IDN
 */
public static SNIMatcher createHostNameStringSNIMatcher(String string) {
  Assert.checkNotNullParam("string", string);
  return createHostNameStringPredicateSNIMatcher(string::equals);
}
origin: org.jboss.eap/wildfly-client-all

/**
 * Create an SSL context factory which locates the best context by searching the preferred providers in order using
 * the rules established in the given protocol selector.  If there are no matches, a factory is returned which
 *
 * @param protocolSelector the protocol selector
 * @param providerSupplier the provider supplier
 * @return the SSL context factory
 */
public static SecurityFactory<SSLContext> createSslContextFactory(ProtocolSelector protocolSelector, Supplier<Provider[]> providerSupplier) {
  return createSslContextFactory(protocolSelector, providerSupplier, null);
}
origin: org.wildfly.security/wildfly-elytron-ssl

/**
 * Create a configured SSL context from an outside SSL context.
 *
 * @param original the original SSL context
 * @param sslConfigurator the SSL configurator
 * @return the configured SSL context
 */
public static SSLContext createConfiguredSslContext(SSLContext original, final SSLConfigurator sslConfigurator) {
  return createConfiguredSslContext(original, sslConfigurator, true);
}
origin: org.jboss.eap/wildfly-client-all

SecurityFactory<X509TrustManager> getX509TrustManagerFactory() {
  return trustManagerFactory == null ? SSLUtils.getDefaultX509TrustManagerSecurityFactory() : trustManagerFactory;
}
origin: org.wildfly.security/wildfly-elytron-ssl

/**
 * Create an {@code SNIMatcher} which matches SNI host names that are equal to the given (ASCII) string.
 *
 * @param string the host name string (must not be {@code null})
 * @return the SNI matcher (not {@code null})
 * @see IDN
 */
public static SNIMatcher createHostNameStringSNIMatcher(String string) {
  Assert.checkNotNullParam("string", string);
  return createHostNameStringPredicateSNIMatcher(string::equals);
}
origin: org.wildfly.security/wildfly-elytron

final SecurityFactory<SSLContext> sslContextFactory = SSLUtils.createSslContextFactory(protocolSelector, providerSupplier, providerName);
org.wildfly.security.sslSSLUtils

Javadoc

SSL factories and utilities.

Most used methods

  • getDefaultX509TrustManagerSecurityFactory
    Get the platform's default X.509 trust manager security factory. The factory caches the instance.
  • createConfiguredSslContext
    Create a configured SSL context from an outside SSL context.
  • createHostNameStringPredicateSNIMatcher
    Create an SNIMatcher which matches SNI host name strings that satisfy the given predicate.
  • createSslContextFactory
    Create an SSL context factory which locates the best context by searching the preferred providers in

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • addToBackStack (FragmentTransaction)
  • getSharedPreferences (Context)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now