Titanium.Network.SecurityManagerProtocol
The protocol that the Titanium.Network.HTTPClient.securityManager must implement.
The object representing Titanium.Network.HTTPClient.securityManager must implement this protocol. Assigning the securityManager property to an object that does not implement this protocol will cause an exception to be raised. All methods in this protocol are required.
Since: 3.3.0 · Platforms: iphone, ipad, android, macos
Methods #
connectionDelegateForUrl #
The <APSConnectionDelegate> for this connection.
This method is only called if SecurityManagerProtocol.willHandleURL returns true.
See <APSConnectionDelegate> for further information.
| Name | Type | Summary | Optional |
|---|---|---|---|
url | Object | The NSURL representing the end point of this connection. | No |
Returns: APSConnectionDelegate
getKeyManagers #
Returns an array of objects implementing the X509KeyManager protocol for the SSL Context.
This method is only called if SecurityManagerProtocol.willHandleURL returns true.
Return null to set up a SSL Context with the default system key managers.
| Name | Type | Summary | Optional |
|---|---|---|---|
proxy | Object | The Titanium.Network.HTTPClient representing this connection. | No |
Returns: Array<Object>
getTrustManagers #
Returns an array of objects implementing the X509TrustManager protocol for the SSL Context.
This method is only called if SecurityManagerProtocol.willHandleURL returns true.
Return null to set up a SSL Context with the default system trust managers.
| Name | Type | Summary | Optional |
|---|---|---|---|
proxy | Object | The Titanium.Network.HTTPClient representing this connection. | No |
Returns: Array<Object>
willHandleURL #
Returns if the security manager will participate in authentication of this end point.
The parameter passed to this method is a NSURL
on iOS and a Uri on android.
Return true to participate, false to allow default authentication flow.
| Name | Type | Summary | Optional |
|---|---|---|---|
url | Object | The Object representing representing the end point of this connection. | No |
Returns: Boolean