public class TestHBaseTrustManager extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static String |
HOSTNAME |
private static String |
IP_ADDRESS |
private static KeyPair |
keyPair |
private InetAddress |
mockInetAddressWithHostname |
private InetAddress |
mockInetAddressWithoutHostname |
private Socket |
mockSocketWithHostname |
private Socket |
mockSocketWithoutHostname |
private X509ExtendedTrustManager |
mockX509ExtendedTrustManager |
Constructor and Description |
---|
TestHBaseTrustManager() |
public static final HBaseClassTestRule CLASS_RULE
private X509ExtendedTrustManager mockX509ExtendedTrustManager
private static final String IP_ADDRESS
private static final String HOSTNAME
private InetAddress mockInetAddressWithoutHostname
private InetAddress mockInetAddressWithHostname
private Socket mockSocketWithoutHostname
private Socket mockSocketWithHostname
public TestHBaseTrustManager()
public static void createKeyPair() throws Exception
Exception
public static void removeBouncyCastleProvider() throws Exception
Exception
private X509Certificate[] createSelfSignedCertificateChain(String ipAddress, String hostname) throws Exception
Exception
public void testServerHostnameVerificationWithHostnameVerificationDisabled() throws Exception
Exception
public void testServerTrustedWithHostnameVerificationDisabled() throws Exception
Exception
public void testServerTrustedWithHostnameVerificationEnabled() throws Exception
Exception
public void testServerTrustedWithHostnameVerificationEnabledUsingIpAddress() throws Exception
Exception
public void testServerTrustedWithHostnameVerificationEnabledNoReverseLookup() throws Exception
Exception
public void testServerTrustedWithHostnameVerificationEnabledWithHostnameNoReverseLookup() throws Exception
Exception
public void testClientTrustedWithHostnameVerificationDisabled() throws Exception
Exception
public void testClientTrustedWithHostnameVerificationEnabled() throws Exception
Exception
public void testClientTrustedWithHostnameVerificationEnabledUsingIpAddress() throws Exception
Exception
public void testClientTrustedWithHostnameVerificationEnabledWithoutReverseLookup() throws Exception
Exception
public void testClientTrustedWithHostnameVerificationEnabledWithHostnameNoReverseLookup() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.