
net.sf.mmm.crypto.crypt.EncryptorImplCiper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mmm-crypto-jce Show documentation
Show all versions of mmm-crypto-jce Show documentation
Library for simple and more secure usage of cryptography (JCA and JCE).
The newest version!
package net.sf.mmm.crypto.crypt;
import java.security.Key;
import net.sf.mmm.crypto.random.RandomFactory;
/**
* Implementation of {@link Encryptor} based on {@link javax.crypto.Cipher}.
*
* @author Joerg Hohwiller (hohwille at users.sourceforge.net)
* @since 1.0.0
*/
public class EncryptorImplCiper extends CryptorImplCipher implements AbstractEncryptor {
/**
* The constructor.
*
* @param randomFactory the {@link RandomFactory} to use.
* @param config the {@link CryptorConfig}.
* @param key the {@link Key} to use.
*/
public EncryptorImplCiper(RandomFactory randomFactory, CryptorConfig config, Key key) {
super(randomFactory, config, key);
}
@Override
protected boolean isEncryptor() {
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy