mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
fixed formatting issues
This commit is contained in:
parent
968fa4f837
commit
ed708852dc
@ -114,11 +114,9 @@ public class OAuthTokenValidaterStubFactory extends BasePoolableObjectFactory {
|
|||||||
client.setOptions(options);
|
client.setOptions(options);
|
||||||
if (hostURL.getProtocol().equals("https")) {
|
if (hostURL.getProtocol().equals("https")) {
|
||||||
// set up ssl factory since axis2 https transport is used.
|
// set up ssl factory since axis2 https transport is used.
|
||||||
EasySSLProtocolSocketFactory sslProtocolSocketFactory =
|
EasySSLProtocolSocketFactory sslProtocolSocketFactory = createProtocolSocketFactory();
|
||||||
createProtocolSocketFactory();
|
Protocol authhttps = new Protocol(hostURL.getProtocol()
|
||||||
Protocol authhttps = new Protocol(hostURL.getProtocol(),
|
, (ProtocolSocketFactory) sslProtocolSocketFactory, hostURL.getPort());
|
||||||
(ProtocolSocketFactory) sslProtocolSocketFactory,
|
|
||||||
hostURL.getPort());
|
|
||||||
Protocol.registerProtocol(hostURL.getProtocol(), authhttps);
|
Protocol.registerProtocol(hostURL.getProtocol(), authhttps);
|
||||||
options.setProperty(HTTPConstants.CUSTOM_PROTOCOL_HANDLER, authhttps);
|
options.setProperty(HTTPConstants.CUSTOM_PROTOCOL_HANDLER, authhttps);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user