// if you find the cert.db in the nodeagent filelayout
File dasCertDBFile = new File( System.getProperty(
SystemPropertyConstants.INSTANCE_ROOT_PROPERTY) +
"/config/cert8.db");
if (dasCertDBFile.exists()) {
return new TrustManager [] {
new UnifiedX509TrustManager(
new X509TrustManager[] {
new InMemoryX509TrustManager(mCertNickName)
}
)
};
} else {
return (new TrustManager[] { new SunOneBasicX509TrustManager()} );
}