public class TestRESTServerSSL extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.conf.Configuration |
conf |
private static String |
KEY_STORE_PASSWORD |
private static File |
keyDir |
private static org.slf4j.Logger |
LOG |
private static HBaseRESTTestingUtility |
REST_TEST_UTIL |
private static org.apache.hadoop.hbase.rest.client.Client |
sslClient |
private static HBaseTestingUtility |
TEST_UTIL |
private static String |
TRUST_STORE_PASSWORD |
Constructor and Description |
---|
TestRESTServerSSL() |
Modifier and Type | Method and Description |
---|---|
static void |
afterClass() |
static void |
beforeClass() |
void |
beforeEachTest() |
private static void |
generateKeyStore(String keyStoreType,
KeyPair keyPair,
X509Certificate serverCertificate) |
private static void |
generateTrustStore(String trustStoreType,
X509Certificate serverCertificate) |
private static String |
getKeystoreFilePath(String keyStoreType) |
private static String |
getTruststoreFilePath(String trustStoreType) |
private static void |
initializeAlgorithmId() |
private static File |
initKeystoreDir() |
private void |
startRESTServer(String storeType) |
private void |
startRESTServerWithDefaultKeystoreType() |
void |
tearDownAfterTest() |
void |
testNonSslClientDenied() |
void |
testSslConnection() |
void |
testSslConnectionUsingKeystoreFormatJCEKS() |
void |
testSslConnectionUsingKeystoreFormatJKS() |
void |
testSslConnectionUsingKeystoreFormatPKCS12() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final String KEY_STORE_PASSWORD
private static final String TRUST_STORE_PASSWORD
private static final HBaseTestingUtility TEST_UTIL
private static final HBaseRESTTestingUtility REST_TEST_UTIL
private static org.apache.hadoop.hbase.rest.client.Client sslClient
private org.apache.hadoop.conf.Configuration conf
public TestRESTServerSSL()
private static void initializeAlgorithmId()
public static void beforeClass() throws Exception
Exception
public static void afterClass() throws Exception
Exception
public void beforeEachTest()
public void tearDownAfterTest()
public void testSslConnection() throws Exception
Exception
public void testNonSslClientDenied() throws Exception
Exception
public void testSslConnectionUsingKeystoreFormatJKS() throws Exception
Exception
public void testSslConnectionUsingKeystoreFormatJCEKS() throws Exception
Exception
public void testSslConnectionUsingKeystoreFormatPKCS12() throws Exception
Exception
private static File initKeystoreDir()
private static void generateKeyStore(String keyStoreType, KeyPair keyPair, X509Certificate serverCertificate) throws Exception
Exception
private static void generateTrustStore(String trustStoreType, X509Certificate serverCertificate) throws Exception
Exception
private static String getKeystoreFilePath(String keyStoreType)
private static String getTruststoreFilePath(String trustStoreType)
private void startRESTServerWithDefaultKeystoreType() throws Exception
Exception
private void startRESTServer(String storeType) throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.