Skip to content

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.

Parameters:
NameTypeSummaryOptional
urlObjectThe 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.

Parameters:
NameTypeSummaryOptional
proxyObjectThe 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.

Parameters:
NameTypeSummaryOptional
proxyObjectThe 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.

Parameters:
NameTypeSummaryOptional
urlObjectThe Object representing representing the end point of this connection.No

Returns: Boolean

Titanium SDK Documentation