com.application.areca.impl.policy
Class EncryptionPolicy

java.lang.Object
  extended by com.application.areca.impl.policy.EncryptionPolicy
All Implemented Interfaces:
Duplicable

public class EncryptionPolicy
extends java.lang.Object
implements Duplicable


Author:
Olivier PETRUCCI

Areca Build ID : 7299034069467778562

Field Summary
protected  java.lang.String encryptionAlgorithm
           
protected  java.lang.String encryptionKey
           
protected  boolean encryptNames
           
protected  boolean isEncrypted
           
 
Constructor Summary
EncryptionPolicy()
           
 
Method Summary
 Duplicable duplicate()
          Create a copy of the Duplicable
 java.lang.String getEncryptionAlgorithm()
           
 java.lang.String getEncryptionKey()
           
 FileSystemDriver initFileSystemDriver(java.io.File basePath, FileSystemDriver predecessor)
           
 boolean isEncrypted()
           
 boolean isEncryptNames()
           
 void setEncrypted(boolean isEncrypted)
           
 void setEncryptionAlgorithm(java.lang.String encryptionAlgorithm)
           
 void setEncryptionKey(java.lang.String encryptionKey)
           
 void setEncryptNames(boolean encryptNames)
           
 java.lang.String toString()
           
static boolean validateEncryptionKey(java.lang.String encryptionKey, EncryptionConfiguration params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

encryptionKey

protected java.lang.String encryptionKey

encryptionAlgorithm

protected java.lang.String encryptionAlgorithm

encryptNames

protected boolean encryptNames

isEncrypted

protected boolean isEncrypted
Constructor Detail

EncryptionPolicy

public EncryptionPolicy()
Method Detail

initFileSystemDriver

public FileSystemDriver initFileSystemDriver(java.io.File basePath,
                                             FileSystemDriver predecessor)
                                      throws ApplicationException
Throws:
ApplicationException

validateEncryptionKey

public static boolean validateEncryptionKey(java.lang.String encryptionKey,
                                            EncryptionConfiguration params)

getEncryptionAlgorithm

public java.lang.String getEncryptionAlgorithm()

setEncryptionAlgorithm

public void setEncryptionAlgorithm(java.lang.String encryptionAlgorithm)

getEncryptionKey

public java.lang.String getEncryptionKey()

setEncryptionKey

public void setEncryptionKey(java.lang.String encryptionKey)

isEncrypted

public boolean isEncrypted()

isEncryptNames

public boolean isEncryptNames()

setEncryptNames

public void setEncryptNames(boolean encryptNames)

setEncrypted

public void setEncrypted(boolean isEncrypted)

duplicate

public Duplicable duplicate()
Description copied from interface: Duplicable
Create a copy of the Duplicable

Specified by:
duplicate in interface Duplicable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object