} catch(KeyManagementException kME) {
ApsSystemUtils.logThrowable(kME, this, "Hier: " + kME.getMessage());
}
tls.negotiate(sslsf);
} else {
tls.negotiate();
}
if (null != this.getSecurityPrincipal() && null != this.getSecurityCredentials()) {
dirCtx.addToEnvironment(Context.SECURITY_PRINCIPAL, this.getSecurityPrincipal());
dirCtx.addToEnvironment(Context.SECURITY_CREDENTIALS, this.getSecurityCredentials());
dirCtx.addToEnvironment(Context.SECURITY_AUTHENTICATION, "simple");