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

io.github.mmm.crypto.asymmetric.cert.CertificateConfig Maven / Gradle / Ivy

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

import java.util.Objects;

import io.github.mmm.crypto.CryptoConfig;
import io.github.mmm.crypto.provider.SecurityProvider;

/**
 * Configuration for {@link CertificateCreator}.
 *
 * @author Joerg Hohwiller (hohwille at users.sourceforge.net)
 * @since 1.0.0
 */
public class CertificateConfig extends CryptoConfig {

  private final String type;

  /**
   * The constructor.
   *
   * @param type the {@link #getType() type}.
   * @param provider the {@link #getProvider() provider}.
   */
  public CertificateConfig(String type, SecurityProvider provider) {

    super(provider);
    Objects.requireNonNull(type, "type");
    this.type = type;
  }

  /**
   * @return type the {@link javax.security.cert.Certificate} {@link java.security.cert.CertificateFactory#getType()
   *         type}.
   */
  public String getType() {

    return this.type;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy