Class CryptorFactory

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CRYPTOR_CLASS
      The System property name to identify the Cryptor class to be used.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Cryptor getCryptor()
      Gets the Cryptor.
      static void setCryptor​(Cryptor cryptor)
      Allows the Cryptor class to be set programmatically.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getCryptor

        public static Cryptor getCryptor()
        Gets the Cryptor. If one has not been previously set, create it. The Cryptor class can be set by setting the "org.apache.commons.vfs2.cryptor" System property to the name of the Cryptor class.
        Returns:
        The Cryptor.
      • setCryptor

        public static void setCryptor​(Cryptor cryptor)
        Allows the Cryptor class to be set programmatically.
        Parameters:
        cryptor - The Cryptor.