public class SSLHandler extends Object
| Constructor and Description |
|---|
SSLHandler(Properties config) |
| Modifier and Type | Method and Description |
|---|---|
HttpURLConnection |
getConnection(URL url)
Creates a secure connection to the provided URL.
|
HttpURLConnection |
getConnectionServerCert(URL url) |
static URL |
parseURLAndCreateObject(String urlString)
Parses a string url into a URL object.
|
public SSLHandler(Properties config) throws KeyStoreException, IOException
config - Properties configKeyStoreExceptionIOExceptionpublic HttpURLConnection getConnection(URL url) throws IOException, KeyStoreException
url - the URL for the HTTPS Connection.IOException - Throws IOExceptionKeyStoreException - Throws KeyStoreExceptionpublic HttpURLConnection getConnectionServerCert(URL url) throws IOException, KeyStoreException
IOExceptionKeyStoreExceptionpublic static URL parseURLAndCreateObject(String urlString) throws MalformedURLException
urlString - The url string that needs parsing.MalformedURLException - Throws MalformedURLException| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/connectivity/services/api
|
api
|
EP-PIN
|
Copyright 2021 SAP SE Complete Copyright Notice