Package org.apache.hadoop.hbase.rest
Class TestRESTServerSSL
java.lang.Object
org.apache.hadoop.hbase.rest.TestRESTServerSSL
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate org.apache.hadoop.conf.Configurationprivate static final Stringprivate static Fileprivate static final org.slf4j.Loggerprivate static final HBaseRESTTestingUtilityprivate static org.apache.hadoop.hbase.rest.client.Clientprivate static final HBaseTestingUtilprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidvoidprivate static voidgenerateKeyStore(String keyStoreType, KeyPair keyPair, X509Certificate serverCertificate) private static voidgenerateTrustStore(String trustStoreType, X509Certificate serverCertificate) private static StringgetKeystoreFilePath(String keyStoreType) private static StringgetTruststoreFilePath(String trustStoreType) private static voidprivate static Fileprivate voidstartRESTServer(String storeType) private voidvoidvoidvoidvoidvoidvoid
-
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
-