Fixing references to the old SecurityContext type.
[PLINK-260] - IdentityManager.retrieveCredentials and retrieveCurrentCredential is not working.