}
private void initContext( Context wdc, ServletHttpContext context )
throws ClassNotFoundException, InstantiationException, IllegalAccessException
{
AuthenticationInfo authenticationInfo = wdc.getAuthenticationInfo();
if ( authenticationInfo != null )
{
HashUserRealm userRealm = new HashUserRealm( "basic" );
userRealm.put( authenticationInfo.getUserName(), authenticationInfo.getPassword() );
context.getHttpServer().addRealm( userRealm );
context.setAuthenticator( new BasicAuthenticator() );
context.addSecurityConstraint( "/*", new SecurityConstraint( "any", SecurityConstraint.ANY_ROLE ) );
context.addHandler( new SecurityHandler() );