* Returns the trust manager to be used by this application.
* @return the trust manager to be used by this application.
*/
private ApplicationTrustManager getTrustManager()
{
ApplicationTrustManager trust;
if (isInteractive())
{
TrustManager t = ci.getTrustManager();
if (t == null)
{
trust = null;
}
else if (t instanceof ApplicationTrustManager)
{
trust = (ApplicationTrustManager)t;
}
else
{
trust = new ApplicationTrustManager(ci.getKeyStore());
}
}
else
{
trust = argParser.getTrustManager();