get_authorization


Description:

public virtual string get_authorization (Message msg)

Generates an appropriate "Authorization" header for msg.

(The session will only call this if [method@Auth.is_authenticated] returned true.)

Parameters:

this

a Auth

msg

the Message to be authorized

Returns:

the "Authorization" header, which must be freed.