Commit 07cad723 authored by Quxl's avatar Quxl

x

parent 1dbc652e
package com.egolm.sso.clients; package com.egolm.sso.clients;
import java.io.File; import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.MalformedURLException; import java.net.MalformedURLException;
import java.net.URL; import java.net.URL;
import java.security.KeyStore;
import java.security.cert.CertificateException; import java.security.cert.CertificateException;
import java.security.cert.X509Certificate; import java.security.cert.X509Certificate;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import javax.net.ssl.HostnameVerifier; import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.KeyManager;
import javax.net.ssl.KeyManagerFactory;
import javax.net.ssl.SSLSession; import javax.net.ssl.SSLSession;
import javax.net.ssl.TrustManager; import javax.net.ssl.TrustManager;
import javax.net.ssl.TrustManagerFactory;
import javax.net.ssl.X509TrustManager; import javax.net.ssl.X509TrustManager;
import javax.security.auth.callback.Callback; import javax.security.auth.callback.Callback;
import javax.security.auth.callback.CallbackHandler; import javax.security.auth.callback.CallbackHandler;
...@@ -43,14 +37,14 @@ public class SAPServiceFactory { ...@@ -43,14 +37,14 @@ public class SAPServiceFactory {
@Value("${CLIENT.SSL.OPEN}") @Value("${CLIENT.SSL.OPEN}")
private boolean isOpenSSLAuth; private boolean isOpenSSLAuth;
@Value("${CLIENT.SSL.PROTOCOL}") // @Value("${CLIENT.SSL.PROTOCOL}")
private String SSLProtocol; // private String SSLProtocol;
//
@Value("${CLIENT.SSL.KEYSTORE.FILEPATH}") // @Value("${CLIENT.SSL.KEYSTORE.FILEPATH}")
private String keyStoreFile; // private String keyStoreFile;
//
@Value("${CLIENT.SSL.KEYSTORE.PASSWORD}") // @Value("${CLIENT.SSL.KEYSTORE.PASSWORD}")
private String keyStorePassword; // private String keyStorePassword;
@Value("${CLIENT.USER.OPEN}") @Value("${CLIENT.USER.OPEN}")
private boolean isOpenUserAuth; private boolean isOpenUserAuth;
...@@ -125,6 +119,7 @@ public class SAPServiceFactory { ...@@ -125,6 +119,7 @@ public class SAPServiceFactory {
} }
/*
private static TrustManager[] trustManagers = null; private static TrustManager[] trustManagers = null;
private static KeyManager[] keyManagers = null; private static KeyManager[] keyManagers = null;
...@@ -180,4 +175,5 @@ public class SAPServiceFactory { ...@@ -180,4 +175,5 @@ public class SAPServiceFactory {
} }
return keyManagers; return keyManagers;
} }
*/
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment