Enabling a User Authentication
To enable user authentication, it is necessary to have previously added a realm definition.
The following XML fragment activates the HTTP Basic Authentication for the selected context.
<
Set
name
=
"realmName"
>Admin Realm</
Set
>
<
Set
name
=
"authenticator"
>
<
New
class
=
"com.ebd.hub.server.http.BasicAuthenticator"
/>
</
Set
>
<
Call
name
=
"addHandler"
>
<
Arg
>
<
New
class
=
"com.ebd.hub.server.http.handler.SecurityHandler"
/>
</
Arg
>
</
Call
>
The parameter specifies the name of the realm, as it was previously defined when adding.