com.filenet.rm.api.util

Class FileUtil

  • java.lang.Object
    • com.filenet.rm.api.util.FileUtil


  • public class FileUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor and Description
      FileUtil() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static java.io.File validateTempFile(java.io.File file)
      Return the validated File object, if the actual file location is within the system temprorary directory.
      static java.io.File validateTempFile(java.lang.String intendedPath, java.io.File file)
      Return the validated File object, if the actual file location is within the file heirarchy indicated by intendedPath This method is intended to be used to filter out CWE-22 vulnerabilities.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileUtil

        public FileUtil()
    • Method Detail

      • validateTempFile

        public static java.io.File validateTempFile(java.io.File file)
                                             throws java.io.IOException
        Return the validated File object, if the actual file location is within the system temprorary directory.
        Parameters:
        file -
        Returns:
        Throws:
        java.io.IOException
      • validateTempFile

        public static java.io.File validateTempFile(java.lang.String intendedPath,
                                    java.io.File file)
                                             throws java.io.IOException
        Return the validated File object, if the actual file location is within the file heirarchy indicated by intendedPath This method is intended to be used to filter out CWE-22 vulnerabilities.
        Parameters:
        intendedPath -
        file -
        Returns:
        Throws:
        java.io.IOException

© Copyright IBM Corp. 2003, 2013. All Rights Reserved.