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

io.github.mmm.crypto.asymmetric.crypt.AsymmetricCryptorFactoryImpl Maven / Gradle / Ivy

package io.github.mmm.crypto.asymmetric.crypt;

import java.security.PrivateKey;
import java.security.PublicKey;

import io.github.mmm.crypto.crypt.CryptorFactoryImpl;
import io.github.mmm.crypto.random.RandomFactory;

/**
 * Implementation of {@link AsymmetricCryptorFactory}.
 *
 * @param  type of {@link PrivateKey}.
 * @param  type of {@link PublicKey}.
 * @author Joerg Hohwiller (hohwille at users.sourceforge.net)
 * @since 1.0.0
 */
public class AsymmetricCryptorFactoryImpl extends CryptorFactoryImpl
    implements AsymmetricCryptorFactory {

  private final AsymmetricCryptorConfig config;

  /**
   * The constructor.
   *
   * @param config the {@link AsymmetricCryptorConfig}.
   * @param randomFactory the {@link RandomFactory}.
   */
  public AsymmetricCryptorFactoryImpl(AsymmetricCryptorConfig config, RandomFactory randomFactory) {

    super(config.getProvider(), randomFactory);
    this.config = config;
  }

  @Override
  public AsymmetricCryptorConfig getConfig() {

    return this.config;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy