Package org.conscrypt

Class FileClientSessionCache


  • public class FileClientSessionCache
    extends Object
    File-based cache implementation. Only one process should access the underlying directory at a time.
    • Method Detail

      • usingDirectory

        public static SSLClientSessionCache usingDirectory​(File directory)
                                                    throws IOException
        Returns a cache backed by the given directory. Creates the directory (including parent directories) if necessary. This cache should have exclusive access to the given directory.
        Parameters:
        directory - to store files in
        Returns:
        a cache backed by the given directory
        Throws:
        IOException - if the file exists and is not a directory or if creating the directories fails