Use new exception types in KeyProvider class.