
de.schlichtherle.truezip.crypto.raes.param.AesCipherParameters Maven / Gradle / Ivy
/*
* Copyright (C) 2011 Schlichtherle IT Services
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package de.schlichtherle.truezip.crypto.raes.param;
import de.schlichtherle.truezip.crypto.raes.Type0RaesParameters.KeyStrength;
import de.schlichtherle.truezip.key.pbe.SafePbeParameters;
import edu.umd.cs.findbugs.annotations.DefaultAnnotation;
import edu.umd.cs.findbugs.annotations.NonNull;
import net.jcip.annotations.NotThreadSafe;
/**
* A JavaBean which holds AES cipher parameters.
*
* @author Christian Schlichtherle
* @version $Id$
*/
@NotThreadSafe
@DefaultAnnotation(NonNull.class)
public final class AesCipherParameters
extends SafePbeParameters {
public AesCipherParameters() {
reset();
}
@Override
public void reset() {
super.reset();
setKeyStrength(KeyStrength.BITS_256);
}
@Override
public KeyStrength[] getKeyStrengthValues() {
return KeyStrength.values();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy