[security-dev] Credentials API redesign