This protocol is used for credential handling.It also handles connection completion. All connection delegates must typically implement this protocol because it handles connection failure during data transfers.