Class CryptorFactory

java.lang.Object
org.apache.commons.vfs2.util.CryptorFactory

public final class CryptorFactory extends Object
Creates an instance of Cryptor.
Since:
2.0
  • Field Details

  • Method Details

    • 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.