org.apache.commons.vfs.util
Class CryptorFactory

java.lang.Object
  extended by org.apache.commons.vfs.util.CryptorFactory

public final class CryptorFactory
extends java.lang.Object

Factory to create an instance of a Cryptor.

Author:
Commons VFS team

Field Summary
static java.lang.String CRYPTOR_CLASS
          The System property name to identify the Cryptor class to be used.
 
Method Summary
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
 

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.vfs.cryptor" System property to the name of the Cryptor class.

Returns:
The Cryptor.


Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.