private static boolean isTempPathSecure(){
  if (!wasTempPathChecked) {
synchronized (WindowsAttachProvider.class) {
      if (!wasTempPathChecked) {
        String temp=tempPath();
        if ((temp != null) && (temp.length() >= 3) && (temp.charAt(1) == ':')&& (temp.charAt(2) == '\\')) {
          long flags=volumeFlags(temp.substring(0,3));
          isTempPathSecure=((flags & FS_PERSISTENT_ACLS) != 0);
        }
        wasTempPathChecked=true;
      }
    }
  }
  return isTempPathSecure;
}

private static boolean isTempPathSecure ( ) { if ( ! wasTempPathChecked ) { synchronized ( WindowsAttachProvider . class ) { if ( ! wasTempPathChecked ) { String temp = tempPath ( ) ; if ( ( temp != null ) && ( temp . length ( ) >= 3 ) && ( temp . charAt ( 1 ) == ':' ) && ( temp . charAt ( 2 ) == '\\' ) ) { long flags = volumeFlags ( temp . substring ( 0 , 3 ) ) ; isTempPathSecure = ( ( flags & FS_PERSISTENT_ACLS ) != 0 ) ; } wasTempPathChecked = true ; } } } return isTempPathSecure ; }
returns true if the temporary file system supports security
