![JAR search and dependency download from the Maven repository](/logo.png)
de.schlichtherle.truezip.fs.archive.zip.raes.ZipRaesKeyController Maven / Gradle / Ivy
/*
* Copyright (C) 2005-2013 Schlichtherle IT Services.
* All rights reserved. Use is subject to license terms.
*/
package de.schlichtherle.truezip.fs.archive.zip.raes;
import de.schlichtherle.truezip.crypto.raes.RaesKeyException;
import de.schlichtherle.truezip.crypto.raes.param.AesCipherParameters;
import de.schlichtherle.truezip.fs.FsController;
import de.schlichtherle.truezip.fs.FsModel;
import de.schlichtherle.truezip.fs.archive.zip.KeyController;
import java.io.IOException;
import javax.annotation.concurrent.Immutable;
/**
* 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).
*
* @param the type of the file system model.
* @author Christian Schlichtherle
*/
@Immutable
final class ZipRaesKeyController
extends KeyController {
ZipRaesKeyController(FsController extends M> controller, ZipRaesDriver driver) {
super(controller, driver);
}
@Override
protected Class> getKeyType() {
return AesCipherParameters.class;
}
@Override
protected Class extends IOException> getKeyExceptionType() {
return RaesKeyException.class;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy