Package org.apache.hadoop.hbase.rest
Class TestRESTServerSSL
java.lang.Object
org.apache.hadoop.hbase.rest.TestRESTServerSSL
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private org.apache.hadoop.conf.Configuration
private static final String
private static File
private static final org.slf4j.Logger
private static final HBaseRESTTestingUtility
private static org.apache.hadoop.hbase.rest.client.Client
private static final HBaseTestingUtil
private static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
void
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
private static File
private void
startRESTServer
(String storeType) private void
void
void
void
void
void
void
-
Field Details
-
CLASS_RULE
-
LOG
-
KEY_STORE_PASSWORD
- See Also:
-
TRUST_STORE_PASSWORD
- See Also:
-
TEST_UTIL
-
REST_TEST_UTIL
-
sslClient
-
keyDir
-
conf
-
-
Constructor Details
-
TestRESTServerSSL
public TestRESTServerSSL()
-
-
Method Details
-
initializeAlgorithmId
-
beforeClass
- Throws:
Exception
-
afterClass
- Throws:
Exception
-
beforeEachTest
-
tearDownAfterTest
-
testSslConnection
- Throws:
Exception
-
testNonSslClientDenied
- Throws:
Exception
-
testSslConnectionUsingKeystoreFormatJKS
- Throws:
Exception
-
testSslConnectionUsingKeystoreFormatJCEKS
- Throws:
Exception
-
testSslConnectionUsingKeystoreFormatPKCS12
- Throws:
Exception
-
initKeystoreDir
-
generateKeyStore
private static void generateKeyStore(String keyStoreType, KeyPair keyPair, X509Certificate serverCertificate) throws Exception - Throws:
Exception
-
generateTrustStore
private static void generateTrustStore(String trustStoreType, X509Certificate serverCertificate) throws Exception - Throws:
Exception
-
getKeystoreFilePath
-
getTruststoreFilePath
-
startRESTServerWithDefaultKeystoreType
- Throws:
Exception
-
startRESTServer
- Throws:
Exception
-