Uses of Class javax.net.ssl.SNIMatcher (Java Platform SE 8 )
Date: 2026-07-22

## Uses of Class
javax.net.ssl.SNIMatcher

- Packages that use SNIMatcher
  Package | Description
  --- | ---
  javax.net.ssl | Provides classes for the secure socket package.

- - ### Uses of SNIMatcher in javax.net.ssl

    Methods in javax.net.ssl that return SNIMatcher
    Modifier and Type | Method and Description
    --- | ---
    `static SNIMatcher` | SNIHostName.`createSNIMatcher(String regex)` Creates an `SNIMatcher` object for `SNIHostName`s.

    Methods in javax.net.ssl that return types with arguments of type SNIMatcher
    Modifier and Type | Method and Description
    --- | ---
    `Collection<SNIMatcher>` | SSLParameters.`getSNIMatchers()` Returns a `Collection` containing all `SNIMatcher`s of the Server Name Indication (SNI) parameter, or null if none has been set.

    Method parameters in javax.net.ssl with type arguments of type SNIMatcher
    Modifier and Type | Method and Description
    --- | ---
    `void` | SSLParameters.`setSNIMatchers(Collection<SNIMatcher> matchers)` Sets the `SNIMatcher`s of the Server Name Indication (SNI) parameter.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.