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

net.sf.mmm.crypto.crypt.EncryptorImplCiper Maven / Gradle / Ivy

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