Registers a {@link AuthSchemeFactory} with the given identifier. If a factory with the given name already exists it will be overridden. This name is the same one used to retrieve the {@link AuthScheme authentication scheme} from {@link #getAuthScheme}.
Please note that custom authentication preferences, if used, need to be updated accordingly for the new {@link AuthScheme authentication scheme} to take effect.
@param name the identifier for this scheme
@param factory the {@link AuthSchemeFactory} class to register
@see #getAuthScheme