Tabnine Logo
SSLUtils.createHostNameStringPredicateSNIMatcher
Code IndexAdd Tabnine to your IDE (free)

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

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

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 {@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 {@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 {@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 {@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

/**
 * 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.jboss.eap/wildfly-client-all

/**
 * 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-ssl

/**
 * 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));
}
org.wildfly.security.sslSSLUtilscreateHostNameStringPredicateSNIMatcher

Javadoc

Create an SNIMatcher which matches SNI host name strings that satisfy the given predicate.

Popular methods of SSLUtils

  • 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.
  • createSslContextFactory
    Create an SSL context factory which locates the best context by searching the preferred providers in

Popular in Java

  • Start an intent from android
  • runOnUiThread (Activity)
  • putExtra (Intent)
  • getResourceAsStream (ClassLoader)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • JComboBox (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top plugins for Android Studio
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