public enum TrustAllHostNames extends Enum<TrustAllHostNames> implements HostnameVerifier
| Enum Constant and Description |
|---|
INSTANCE
实例
|
| Modifier and Type | Method and Description |
|---|---|
static TrustAllHostNames |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TrustAllHostNames[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
boolean |
verify(String s,
SSLSession sslSession) |
public static final TrustAllHostNames INSTANCE
public static TrustAllHostNames[] values()
for (TrustAllHostNames c : TrustAllHostNames.values()) System.out.println(c);
public static TrustAllHostNames 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 nullpublic boolean verify(String s, SSLSession sslSession)
verify in interface HostnameVerifierCopyright © 2024. All rights reserved.