Program: 57856
Project: 57856
Buggy source:
/** 
 * Initializes the authentication filter. <p/> It instantiates and initializes the specified   {@link AuthenticationHandler}. <p/>
 * @param filterConfig filter configuration.
 * @throws ServletException thrown if the filter or the authentication handler could not be initialized properly.
 */
@Override public void init(FilterConfig filterConfig) throws ServletException {
  String configPrefix=filterConfig.getInitParameter(CONFIG_PREFIX);
  configPrefix=(configPrefix != null) ? configPrefix + "String_Node_Str" : "String_Node_Str";
  Properties config=getConfiguration(configPrefix,filterConfig);
  String authHandlerName=config.getProperty(AUTH_TYPE,null);
  String authHandlerClassName;
  if (authHandlerName == null) {
    throw new ServletException("String_Node_Str");
  }
  if (authHandlerName.equals("String_Node_Str")) {
    authHandlerClassName=PseudoAuthenticationHandler.class.getName();
  }
 else   if (authHandlerName.equals("String_Node_Str")) {
    authHandlerClassName=KerberosAuthenticationHandler.class.getName();
  }
 else {
    authHandlerClassName=authHandlerName;
  }
  try {
    Class klass=Thread.currentThread().getContextClassLoader().loadClass(authHandlerClassName);
    authHandler=(AuthenticationHandler)klass.newInstance();
    authHandler.init(config);
  }
 catch (  ClassNotFoundException ex) {
    throw new ServletException(ex);
  }
catch (  InstantiationException ex) {
    throw new ServletException(ex);
  }
catch (  IllegalAccessException ex) {
    throw new ServletException(ex);
  }
  String signatureSecret=config.getProperty(configPrefix + SIGNATURE_SECRET);
  if (signatureSecret == null) {
    signatureSecret=Long.toString(new Random(System.currentTimeMillis()).nextLong());
    randomSecret=true;
    LOG.warn("String_Node_Str");
  }
  signer=new Signer(signatureSecret.getBytes());
  validity=Long.parseLong(config.getProperty(AUTH_TOKEN_VALIDITY,"String_Node_Str")) * 1000;
  cookieDomain=config.getProperty(COOKIE_DOMAIN,null);
  cookiePath=config.getProperty(COOKIE_PATH,null);
}

Fixed version (ground truth):
/** 
 * Initializes the authentication filter. <p/> It instantiates and initializes the specified   {@link AuthenticationHandler}. <p/>
 * @param filterConfig filter configuration.
 * @throws ServletException thrown if the filter or the authentication handler could not be initialized properly.
 */
@Override public void init(FilterConfig filterConfig) throws ServletException {
  String configPrefix=filterConfig.getInitParameter(CONFIG_PREFIX);
  configPrefix=(configPrefix != null) ? configPrefix + "String_Node_Str" : "String_Node_Str";
  Properties config=getConfiguration(configPrefix,filterConfig);
  String authHandlerName=config.getProperty(AUTH_TYPE,null);
  String authHandlerClassName;
  if (authHandlerName == null) {
    throw new ServletException("String_Node_Str");
  }
  if (authHandlerName.equals("String_Node_Str")) {
    authHandlerClassName=PseudoAuthenticationHandler.class.getName();
  }
 else   if (authHandlerName.equals("String_Node_Str")) {
    authHandlerClassName=KerberosAuthenticationHandler.class.getName();
  }
 else {
    authHandlerClassName=authHandlerName;
  }
  try {
    Class<?> klass=Thread.currentThread().getContextClassLoader().loadClass(authHandlerClassName);
    authHandler=(AuthenticationHandler)klass.newInstance();
    authHandler.init(config);
  }
 catch (  ClassNotFoundException ex) {
    throw new ServletException(ex);
  }
catch (  InstantiationException ex) {
    throw new ServletException(ex);
  }
catch (  IllegalAccessException ex) {
    throw new ServletException(ex);
  }
  String signatureSecret=config.getProperty(configPrefix + SIGNATURE_SECRET);
  if (signatureSecret == null) {
    signatureSecret=Long.toString(RAN.nextLong());
    randomSecret=true;
    LOG.warn("String_Node_Str");
  }
  signer=new Signer(signatureSecret.getBytes());
  validity=Long.parseLong(config.getProperty(AUTH_TOKEN_VALIDITY,"String_Node_Str")) * 1000;
  cookieDomain=config.getProperty(COOKIE_DOMAIN,null);
  cookiePath=config.getProperty(COOKIE_PATH,null);
}