TrueZIP Driver TZP (ZIP.RAES) 7.0-rc1

de.schlichtherle.truezip.fs.archive.zip.raes
Enum ZipRaesDriver.KeyProviderSyncStrategy

java.lang.Object
  extended by java.lang.Enum<ZipRaesDriver.KeyProviderSyncStrategy>
      extended by de.schlichtherle.truezip.fs.archive.zip.raes.ZipRaesDriver.KeyProviderSyncStrategy
All Implemented Interfaces:
Serializable, Comparable<ZipRaesDriver.KeyProviderSyncStrategy>
Enclosing class:
ZipRaesDriver

public static enum ZipRaesDriver.KeyProviderSyncStrategy
extends Enum<ZipRaesDriver.KeyProviderSyncStrategy>

Defines strategies for updating a key provider once a RAES encrypted ZIP file has been successfully synchronized.


Enum Constant Summary
RESET_CANCELLED_KEY
          Calls PromptingKeyProvider.resetCancelledKey() if and only if the given provider is a PromptingKeyProvider.
RESET_UNCONDITIONALLY
          Calls PromptingKeyProvider.resetUnconditionally() if and only if the given provider is a PromptingKeyProvider.
 
Method Summary
abstract  void sync(KeyProvider<?> provider)
          This method is called upon a call to KeyManagerArchiveController.sync(de.schlichtherle.truezip.util.BitField, de.schlichtherle.truezip.util.ExceptionHandler) after a successful synchronization of a RAES encrypted ZIP file.
static ZipRaesDriver.KeyProviderSyncStrategy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ZipRaesDriver.KeyProviderSyncStrategy[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

RESET_CANCELLED_KEY

public static final ZipRaesDriver.KeyProviderSyncStrategy RESET_CANCELLED_KEY
Calls PromptingKeyProvider.resetCancelledKey() if and only if the given provider is a PromptingKeyProvider.


RESET_UNCONDITIONALLY

public static final ZipRaesDriver.KeyProviderSyncStrategy RESET_UNCONDITIONALLY
Calls PromptingKeyProvider.resetUnconditionally() if and only if the given provider is a PromptingKeyProvider.

Method Detail

values

public static ZipRaesDriver.KeyProviderSyncStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ZipRaesDriver.KeyProviderSyncStrategy c : ZipRaesDriver.KeyProviderSyncStrategy.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ZipRaesDriver.KeyProviderSyncStrategy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

sync

public abstract void sync(KeyProvider<?> provider)
This method is called upon a call to KeyManagerArchiveController.sync(de.schlichtherle.truezip.util.BitField, de.schlichtherle.truezip.util.ExceptionHandler) after a successful synchronization of a RAES encrypted ZIP file.

Parameters:
provider - the key provider for the RAES encrypted ZIP file which has been successfully synchronized.

TrueZIP Driver TZP (ZIP.RAES) 7.0-rc1

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.