[PLINK-195] - ClassCastException when authenticating an Agent.