Class CryptorFactory
java.lang.Object
org.apache.commons.vfs2.util.CryptorFactory
Factory to create an instance of a Cryptor.
- Since:
- 2.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CryptorReturn the Cryptor.static voidsetCryptor(Cryptor cryptor) Allows the Cryptor class to be set programmatically.
-
Field Details
-
CRYPTOR_CLASS
The System property name to identify the Cryptor class to be used.- See Also:
-
instance
-
-
Constructor Details
-
CryptorFactory
private CryptorFactory()Prevent instantiation of the class.
-
-
Method Details
-
setCryptor
Allows the Cryptor class to be set programmatically.- Parameters:
cryptor- The 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.
-