validate
Sets a validation function for the API key string read from headerName.
Return a principal of type P when authentication succeeds, or null when the key is invalid.
Parameters
body
validation function called with the API key header value.
Sets a validation function for the API key string read from headerName.
Return a principal of type P when authentication succeeds, or null when the key is invalid.
validation function called with the API key header value.