Package org.apache.commons.vfs2.util
Class CryptorFactory
- java.lang.Object
-
- org.apache.commons.vfs2.util.CryptorFactory
-
public final class CryptorFactory extends java.lang.ObjectFactory to create an instance of a Cryptor.- Since:
- 2.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCRYPTOR_CLASSThe 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 CryptorgetCryptor()Return the Cryptor.static voidsetCryptor(Cryptor cryptor)Allows the Cryptor class to be set programmatically.
-
-
-
Field Detail
-
CRYPTOR_CLASS
public static final java.lang.String CRYPTOR_CLASS
The System property name to identify the Cryptor class to be used.- See Also:
- Constant Field Values
-
-
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.
-
-