All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.java.truevfs.driver.zip.raes.ZipRaesKeyController Maven / Gradle / Ivy

Go to download

Provides a file system driver for accessing the RAES encrypted ZIP file format, alias ZIP.RAES or TZP. Add the JAR artifact of this module to the run time class path to make its file system drivers available for service location in the client API modules.

The newest version!
/*
 * Copyright © 2005 - 2021 Schlichtherle IT Services.
 * All rights reserved. Use is subject to license terms.
 */
package net.java.truevfs.driver.zip.raes;

import java.io.IOException;
import javax.annotation.concurrent.Immutable;
import net.java.truevfs.comp.zipdriver.AbstractKeyController;
import net.java.truevfs.driver.zip.raes.crypto.RaesKeyException;
import net.java.truevfs.kernel.spec.FsController;
import net.java.truecommons.key.spec.common.AesPbeParameters;

/**
 * This file system controller decorates another file system controller in
 * order to manage the authentication key required for accessing its
 * RAES encrypted ZIP file (ZIP.RAES).
 *
 * @author Christian Schlichtherle
 */
@Immutable
final class ZipRaesKeyController extends AbstractKeyController {

    ZipRaesKeyController(FsController controller, ZipRaesDriver driver) {
        super(controller, driver);
    }

    @Override
    protected Class getKeyType() {
        return AesPbeParameters.class;
    }

    @Override
    protected Class getKeyExceptionType() {
        return RaesKeyException.class;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy