| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private static Logger |
| Access | Constructor and Description |
|---|---|
| public | JsseDefaultHostnameAuthorizer(Set<String>
a set of suffixes that cannot be wild-carded, e.g. { ".com", ".net", ".org" } knownSuffixes)Base constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public boolean | verified(String
name of the host to be verified. name, SSLSession context object to do the verification under. context)Implements org. |
| public boolean |
| knownSuffixes | back to summary |
|---|---|
| private final Set<String> knownSuffixes | |
| LOG | back to summary |
|---|---|
| private static Logger LOG | |
| JsseDefaultHostnameAuthorizer | back to summary |
|---|---|
| public JsseDefaultHostnameAuthorizer(Set<String> knownSuffixes) Base constructor. The authorizer attempts to perform matching (including the use of the wildcard) in accordance with RFC 6125. Known suffixes is a list of public domain suffixes that can't be used as wild cards for example *.com, or c*c.com, as a dns wildcard could match every/most .com domains if a registrar were issue it. If *.com is in the known suffixes list will not be allowed to match. | |
| isValidNameMatch | back to summary |
|---|---|
| public static boolean isValidNameMatch(String name, String dnsName, Set<String> suffixes) throws IOException | |
| verified | back to summary |
|---|---|
| public boolean verified(String name, SSLSession context) throws IOException Implements org. Doc from org. Verify the passed in host name according to the context object.
| |
| verify | back to summary |
|---|---|
| public boolean verify(String name, X509Certificate cert) throws IOException | |