Class CryptorFactory


  • public final class CryptorFactory
    extends java.lang.Object
    Factory to create an instance of a Cryptor.
    Since:
    2.0
    • 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()
      Return 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

      • setCryptor

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

        public static Cryptor getCryptor()
        Return 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.