public enum HostnameVerificationPolicy extends Enum<HostnameVerificationPolicy>
HostnameVerifier
,
DefaultHostnameVerifier
Enum Constant and Description |
---|
BOTH
Hostname verification is executed by the JSSE provider and by HttpClient post TLS handshake.
|
BUILTIN
Hostname verification is delegated to the JSSE provider, usually executed during the TLS handshake.
|
CLIENT
Hostname verification is executed by HttpClient post TLS handshake.
|
Modifier and Type | Method and Description |
---|---|
static HostnameVerificationPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HostnameVerificationPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HostnameVerificationPolicy BUILTIN
public static final HostnameVerificationPolicy CLIENT
public static final HostnameVerificationPolicy BOTH
public static HostnameVerificationPolicy[] values()
for (HostnameVerificationPolicy c : HostnameVerificationPolicy.values()) System.out.println(c);
public static HostnameVerificationPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.