A library for applications which interface with the UK Government Gateway