throw new BamException(L.l("{0} server signature does not match",
this));
String signature = _authManager.sign(algorithm, uid, serverNonce, password);
SecurityService security = SecurityService.getCurrent();
if ("".equals(uid))
credentials = new SignedCredentials(uid, serverNonce, signature);
else {
credentials = security.createCredentials(algorithm,
uid, password,
serverNonce);
}
}