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

net.sf.mmm.crypto.asymmetric.cert.CertificateData Maven / Gradle / Ivy

The newest version!
package net.sf.mmm.crypto.asymmetric.cert;

import java.math.BigInteger;
import java.security.cert.X509Certificate;
import java.time.Instant;

import net.sf.mmm.crypto.algorithm.CryptoAlgorithm;

/**
 * Interface for the meta-data of a {@link java.security.cert.Certificate}.
 *
 * @author Joerg Hohwiller (hohwille at users.sourceforge.net)
 * @since 1.0.0
 */
public interface CertificateData {

  /**
   * @return the issuer of the certificate.
   */
  String getIssuer();

  /**
   * @return the subject of the certificate (e.g. "[email protected]").
   */
  String getSubject();

  /**
   * @return the serial number (e.g. {@link BigInteger#ONE}).
   */
  BigInteger getSerialNumber();

  /**
   * @return the begin of the validity.
   * @see X509Certificate#getNotBefore()
   */
  Instant getNotBefore();

  /**
   * @return the end of the validity.
   * @see X509Certificate#getNotAfter()
   */
  Instant getNotAfter();

  /**
   * @return the {@link CryptoAlgorithm#getAlgorithm() algorithm name} for the signature.
   */
  String getSignatureAlgorithm();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy