public static void clear(String realmName){
  boolean isDefault=isDefaultOrg(realmName);
  if ((authCtxObjHash != null) && (!authCtxObjHash.isEmpty())) {
    Enumeration keys=authCtxObjHash.keys();
    while (keys.hasMoreElements()) {
      String key=(String)keys.nextElement();
      if (key.indexOf("|" + realmName) != -1) {
        authCtxObjHash.remove(key);
      }
      if (isDefault && key.endsWith("|/")) {
        authCtxObjHash.remove(key);
      }
    }
  }
  if ((authContextHash != null) && (!authContextHash.isEmpty())) {
    Enumeration keys=authContextHash.keys();
    while (keys.hasMoreElements()) {
      String key=(String)keys.nextElement();
      if (key.indexOf("|" + realmName) != -1) {
        authContextHash.remove(key);
      }
      if (isDefault && key.endsWith("|/")) {
        authCtxObjHash.remove(key);
      }
    }
  }
}

public static void clear ( String realmName ) { boolean isDefault = isDefaultOrg ( realmName ) ; if ( ( authCtxObjHash != null ) && ( ! authCtxObjHash . isEmpty ( ) ) ) { Enumeration keys = authCtxObjHash . keys ( ) ; while ( keys . hasMoreElements ( ) ) { String key = ( String ) keys . nextElement ( ) ; if ( key . indexOf ( "|" + realmName ) != - 1 ) { authCtxObjHash . remove ( key ) ; } if ( isDefault && key . endsWith ( "|/" ) ) { authCtxObjHash . remove ( key ) ; } } } if ( ( authContextHash != null ) && ( ! authContextHash . isEmpty ( ) ) ) { Enumeration keys = authContextHash . keys ( ) ; while ( keys . hasMoreElements ( ) ) { String key = ( String ) keys . nextElement ( ) ; if ( key . indexOf ( "|" + realmName ) != - 1 ) { authContextHash . remove ( key ) ; } if ( isDefault && key . endsWith ( "|/" ) ) { authCtxObjHash . remove ( key ) ; } } } }
clears the auth context object hash table .
