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
Exceptionpublic static void afterClass() throws Exception
Exceptionpublic void beforeEachTest()
public void tearDownAfterTest()
public void testSslConnection() throws Exception
Exceptionpublic void testNonSslClientDenied() throws Exception
Exceptionpublic void testSslConnectionUsingKeystoreFormatJKS() throws Exception
Exceptionpublic void testSslConnectionUsingKeystoreFormatJCEKS() throws Exception
Exceptionpublic void testSslConnectionUsingKeystoreFormatPKCS12() throws Exception
Exceptionprivate static File initKeystoreDir()
private static void generateKeyStore(String keyStoreType, KeyPair keyPair, X509Certificate serverCertificate) throws Exception
Exceptionprivate static void generateTrustStore(String trustStoreType, X509Certificate serverCertificate) throws Exception
Exceptionprivate static String getKeystoreFilePath(String keyStoreType)
private static String getTruststoreFilePath(String trustStoreType)
private void startRESTServerWithDefaultKeystoreType() throws Exception
Exceptionprivate void startRESTServer(String storeType) throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.