package Ġuk . bre ed r apps . t sum mar ize backend . security Ċ Ċ import Ġorg . springframework . security . web . authentication . pre auth . Abstract Pre Authenticated Processing Filter Ċ import Ġjavax . servlet . http . HttpServletRequest Ċ Ċ class ĠApi Key Auth Filter ( private Ġval Ġprincipal Request Header : ĠString ): ĠAbstract Pre Authenticated Processing Filter () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġget Pre Authenticated Credentials ( request : ĠHttpServletRequest ?): ĠAny Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġrequest ?. getHeader ( principal Request Header ) Ġ?: Ġ"" ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Pre Authenticated Principal ( request : ĠHttpServletRequest ?): ĠAny Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġrequest ?. getHeader ( principal Request Header ) Ġ?: Ġ"" ĊĠĠĠ Ġ} Ċ }