congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SSLUtils
Code IndexAdd Tabnine 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)

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

  • Parsing JSON documents to java classes using gson
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • runOnUiThread (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Kernel (java.awt.image)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • JComboBox (javax.swing)
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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