Commit f0c1b5d1 authored by Quxl's avatar Quxl

x

parent 5996f846
......@@ -49,6 +49,9 @@ public class SAPServiceFactory {
@Value("${CLIENT.SSL}")
private boolean isOpenSSL;
@Value("${CLIENT.SSLProtocol}")
private String SSLProtocol;
public <T> T create(Class<T> requiredType, URL wsdlLocation, QName serviceQName, QName portQName) {
assert requiredType != null : "WebService requiredType cannot be null";
......@@ -62,7 +65,7 @@ public class SAPServiceFactory {
HTTPConduit httpConduit = (HTTPConduit) client.getConduit();
TLSClientParameters tlsParams = httpConduit.getTlsClientParameters();
tlsParams = tlsParams == null ? new TLSClientParameters() : tlsParams;
tlsParams.setSecureSocketProtocol("SSL");
tlsParams.setSecureSocketProtocol(SSLProtocol);
tlsParams.setKeyManagers(getKeyManagers());
tlsParams.setTrustManagers(getTrustManagers());
httpConduit.setTlsClientParameters(tlsParams);
......
CLIENT:
SSL: true
SSL: true
SSLProtocol: TLSv1.2
KEYSTORE:
FILEPATH: SSL/sap.keystore
PASSWORD: 123456
......
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