public boolean isPureJAASModulePresent(final String configName,final Configuration configuration) throws AuthLoginException {
  if (enforceJAASThread) {
    return true;
  }
  if (null == configuration) {
    return true;
  }
  final AppConfigurationEntry[] entries=configuration.getAppConfigurationEntry(configName);
  if (entries == null) {
    throw new AuthLoginException("amAuth",AMAuthErrorCode.AUTH_CONFIG_NOT_FOUND,null);
  }
  for (  AppConfigurationEntry entry : entries) {
    String className=entry.getLoginModuleName();
    if (debug.messageEnabled()) {
      debug.message("config entry: " + className);
    }
    if (isPureJAASModule(className)) {
      return true;
    }
 else     if (!isISModule(className)) {
      categoriseModuleClassFromClassname(className);
      if (isPureJAASModule(className)) {
        return true;
      }
    }
  }
  return false;
}

public boolean isPureJAASModulePresent ( final String configName , final Configuration configuration ) throws AuthLoginException { if ( enforceJAASThread ) { return true ; } if ( null == configuration ) { return true ; } final AppConfigurationEntry [ ] entries = configuration . getAppConfigurationEntry ( configName ) ; if ( entries == null ) { throw new AuthLoginException ( "amAuth" , AMAuthErrorCode . AUTH_CONFIG_NOT_FOUND , null ) ; } for ( AppConfigurationEntry entry : entries ) { String className = entry . getLoginModuleName ( ) ; if ( debug . messageEnabled ( ) ) { debug . message ( "config entry: " + className ) ; } if ( isPureJAASModule ( className ) ) { return true ; } else if ( ! isISModule ( className ) ) { categoriseModuleClassFromClassname ( className ) ; if ( isPureJAASModule ( className ) ) { return true ; } } } return false ; }
returns whether the auth module is or the auth chain contains pure jaas module ( s ) .
