private void createLoginConfig(final Deployment dep, final JBossWebMetaData jbossWebMD) {
    """
	Creates login-config part of web.xml descriptor.
	<p/>
	<pre>
	&lt;login-config&gt;
	&lt;auth-method&gt;EjbDeploymentAuthMethod&lt;/auth-method&gt;
	&lt;realm-name&gt;EJBWebServiceEndpointServlet Realm&lt;/realm-name&gt;
	&lt;/login-config&gt;
	</pre>
	
	@param dep        webservice deployment
	@param jbossWebMD jboss web meta data
    """
        final String authMethod = getAuthMethod(dep);
        final boolean hasAuthMethod = authMethod != null;
        final String realmName = getRealmName(dep);

        if (hasAuthMethod) {
             WSLogger.ROOT_LOGGER.tracef("Creating new login config: %s, auth method: %s", EJB_WEBSERVICE_REALM, authMethod);
            final LoginConfigMetaData loginConfig = WebMetaDataHelper.getLoginConfig(jbossWebMD);
            if (realmName != null) {
                loginConfig.setRealmName(realmName);
            } else {
                loginConfig.setRealmName(WebMetaDataCreator.EJB_WEBSERVICE_REALM);
            }
            loginConfig.setAuthMethod(authMethod);
        }
    }
private void createLoginConfig(final Deployment dep, final JBossWebMetaData jbossWebMD) {
        final String authMethod = getAuthMethod(dep);
        final boolean hasAuthMethod = authMethod != null;
        final String realmName = getRealmName(dep);

        if (hasAuthMethod) {
             WSLogger.ROOT_LOGGER.tracef("Creating new login config: %s, auth method: %s", EJB_WEBSERVICE_REALM, authMethod);
            final LoginConfigMetaData loginConfig = WebMetaDataHelper.getLoginConfig(jbossWebMD);
            if (realmName != null) {
                loginConfig.setRealmName(realmName);
            } else {
                loginConfig.setRealmName(WebMetaDataCreator.EJB_WEBSERVICE_REALM);
            }
            loginConfig.setAuthMethod(authMethod);
        }
    }
private void createLoginConfig ( final Deployment dep , final JBossWebMetaData jbossWebMD ) { final String authMethod = getAuthMethod ( dep ) ; final boolean hasAuthMethod = authMethod != null ; final String realmName = getRealmName ( dep ) ; if ( hasAuthMethod ) { WSLogger . ROOT_LOGGER . tracef ( "Creating new login config: %s, auth method: %s" , EJB_WEBSERVICE_REALM , authMethod ) ; final LoginConfigMetaData loginConfig = WebMetaDataHelper . getLoginConfig ( jbossWebMD ) ; if ( realmName != null ) { loginConfig . setRealmName ( realmName ) ; } else { loginConfig . setRealmName ( WebMetaDataCreator . EJB_WEBSERVICE_REALM ) ; } loginConfig . setAuthMethod ( authMethod ) ; } }
Creates login-config part of web.xml descriptor.
<p/>
<pre>
&lt;login-config&gt;
&lt;auth-method&gt;EjbDeploymentAuthMethod&lt;/auth-method&gt;
&lt;realm-name&gt;EJBWebServiceEndpointServlet Realm&lt;/realm-name&gt;
&lt;/login-config&gt;
</pre>

@param dep        webservice deployment
@param jbossWebMD jboss web meta data
Creates login - config part of web . xml descriptor . <p / > <pre > &lt ; login - config&gt ; &lt ; auth - method&gt ; EjbDeploymentAuthMethod&lt ; / auth - method&gt ; &lt ; realm - name&gt ; EJBWebServiceEndpointServlet Realm&lt ; / realm - name&gt ; &lt ; / login - config&gt ; < / pre >