Class SafeFile

  • All Implemented Interfaces:
    Serializable, Comparable<File>

    public class SafeFile
    extends File
    Extension to java.io.File to prevent against null byte injections and other unforeseen problems resulting from unprintable characters causing problems in path lookups. This does _not_ prevent against directory traversal attacks. OWASP Enterprise Security API (ESAPI) This file is part of the Open Web Application Security Project (OWASP) Enterprise Security API (ESAPI) project. For details, please see http://www.owasp.org/index.php/ESAPI. Copyright (c) 2008 - The OWASP Foundation The ESAPI is published by OWASP under the BSD license. You should read and accept the LICENSE before you use, modify, and/or redistribute this software.
    Author:
    Arshan Dabirsiaghi Aspect Security
    See Also:
    Serialized Form