Converts an authentication key to a format that can be used in a transport header.
The default implementation encodes and wraps the key in a 'Basic' scheme.
(This will automatically be unwrapped again on the server side
before being handed to the authentication handler.)