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.

  • 3.3.0
  • 3.3.0
  • 3.3.0

NOTE This is an abstract type. Any object meeting this description can be used where this type is used.

Defined By

Methods

SecurityManagerProtocol
( url ) : APSConnectionDelegate
The APSConnectionDelegate for this connection. ...

The APSConnectionDelegate for this connection.

This method is only called if willHandleURL returns true. See APSConnectionDelegate for further information.

  • 3.3.0
  • 3.3.0

Parameters

  • url : Object

    The NSURL representing the end point of this connection.

Returns

SecurityManagerProtocol
( proxy ) : Object[]
Returns an array of objects implementing the X509KeyManager protocol for the SSL Context. ...

Returns an array of objects implementing the X509KeyManager protocol for the SSL Context.

This method is only called if willHandleURL returns true.

Return null to set up a SSL Context with the default system key managers.

  • 3.3.0

Parameters

Returns

  • Object[]
SecurityManagerProtocol
( proxy ) : Object[]
Returns an array of objects implementing the X509TrustManager protocol for the SSL Context. ...

Returns an array of objects implementing the X509TrustManager protocol for the SSL Context.

This method is only called if willHandleURL returns true.

Return null to set up a SSL Context with the default system trust managers.

  • 3.3.0

Parameters

Returns

  • Object[]
SecurityManagerProtocol
( url ) : Boolean
Returns if the security manager will participate in authentication of this end point. ...

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

  • url : Object

    The Object representing representing the end point of this connection.

Returns

  • Boolean