@@ -0,0 +1,1260 @@
+/**%0A * Appcelerator Titanium Mobile%0A * Copyright (c) 2014 by Appcelerator, Inc. All Rights Reserved.%0A * Licensed under the terms of the Apache Public License%0A * Please see the LICENSE included with this distribution for details.%0A */%0A%0Apackage ti.modules.titanium.network;%0A%0Aimport javax.net.ssl.X509KeyManager;%0Aimport javax.net.ssl.X509TrustManager;%0A%0Aimport android.net.Uri;%0A%0Apublic interface SecurityManagerProtocol %7B%0A%09/**%0A%09 * Defines if the SecurityManager will provide TrustManagers and KeyManagers for SSL Context given a Uri%0A%09 * @param uri - The end point for the network connection%0A%09 * @return true if SecurityManagers will define SSL Context, false otherwise.%0A%09 */%0A%09public boolean willHandleURL(Uri uri);%0A%09%0A%09/**%0A%09 * Returns the X509TrustManager array for SSL Context. %0A%09 * @param uri - The end point of the network connection%0A%09 * @return Return array of X509TrustManager for custom server validation. Null otherwise.%0A%09 */%0A%09public X509TrustManager%5B%5D getTrustManagers(Uri uri);%0A%09%0A%09/**%0A%09 * Reurns the X509KeyManager array for the SSL Context.%0A%09 * @param uri - The end point of the network connection%0A%09 * @return Return array of X509KeyManager for custom client certificate management. Null otherwise.%0A%09 */%0A%09public X509KeyManager%5B%5D getKeyManagers(Uri uri);%0A%7D%0A

Define SecurityManagerProtocol interface