.getPrincipal().getName());
return;
}
} else if (cb instanceof ImpersonationCallback) {
Credentials creds = getCredentials();
ImpersonationCallback impersonationCallback = (ImpersonationCallback) cb;
if (creds instanceof TrustedCredentials) {
impersonationCallback
.setImpersonator(((TrustedCredentials) creds)
.getImpersonator());
return;
}
}