Record Class CertificateManager.CertificateInfo

java.lang.Object
java.lang.Record
ecmwf.common.security.CertificateManager.CertificateInfo
Enclosing class:
CertificateManager

public static record CertificateManager.CertificateInfo(String subject, String issuer, String serialNumber, Date notBefore, Date notAfter, String fingerprintSha256, String keyAlgorithm, int keySize, boolean selfSigned, boolean expired, boolean expiringSoon) extends Record
Immutable snapshot of the metadata fields of an X.509 certificate that are displayed in the administration UI.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CertificateInfo(String subject, String issuer, String serialNumber, Date notBefore, Date notAfter, String fingerprintSha256, String keyAlgorithm, int keySize, boolean selfSigned, boolean expired, boolean expiringSoon)
    Creates an instance of a CertificateInfo record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    boolean
    Returns the value of the expired record component.
    boolean
    Returns the value of the expiringSoon record component.
    Returns the value of the fingerprintSha256 record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the issuer record component.
    Returns the value of the keyAlgorithm record component.
    int
    Returns the value of the keySize record component.
    Returns the value of the notAfter record component.
    Returns the value of the notBefore record component.
    boolean
    Returns the value of the selfSigned record component.
    Returns the value of the serialNumber record component.
    Returns the value of the subject record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CertificateInfo

      public CertificateInfo(String subject, String issuer, String serialNumber, Date notBefore, Date notAfter, String fingerprintSha256, String keyAlgorithm, int keySize, boolean selfSigned, boolean expired, boolean expiringSoon)
      Creates an instance of a CertificateInfo record class.
      Parameters:
      subject - the value for the subject record component
      issuer - the value for the issuer record component
      serialNumber - the value for the serialNumber record component
      notBefore - the value for the notBefore record component
      notAfter - the value for the notAfter record component
      fingerprintSha256 - the value for the fingerprintSha256 record component
      keyAlgorithm - the value for the keyAlgorithm record component
      keySize - the value for the keySize record component
      selfSigned - the value for the selfSigned record component
      expired - the value for the expired record component
      expiringSoon - the value for the expiringSoon record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • subject

      public String subject()
      Returns the value of the subject record component.
      Returns:
      the value of the subject record component
    • issuer

      public String issuer()
      Returns the value of the issuer record component.
      Returns:
      the value of the issuer record component
    • serialNumber

      public String serialNumber()
      Returns the value of the serialNumber record component.
      Returns:
      the value of the serialNumber record component
    • notBefore

      public Date notBefore()
      Returns the value of the notBefore record component.
      Returns:
      the value of the notBefore record component
    • notAfter

      public Date notAfter()
      Returns the value of the notAfter record component.
      Returns:
      the value of the notAfter record component
    • fingerprintSha256

      public String fingerprintSha256()
      Returns the value of the fingerprintSha256 record component.
      Returns:
      the value of the fingerprintSha256 record component
    • keyAlgorithm

      public String keyAlgorithm()
      Returns the value of the keyAlgorithm record component.
      Returns:
      the value of the keyAlgorithm record component
    • keySize

      public int keySize()
      Returns the value of the keySize record component.
      Returns:
      the value of the keySize record component
    • selfSigned

      public boolean selfSigned()
      Returns the value of the selfSigned record component.
      Returns:
      the value of the selfSigned record component
    • expired

      public boolean expired()
      Returns the value of the expired record component.
      Returns:
      the value of the expired record component
    • expiringSoon

      public boolean expiringSoon()
      Returns the value of the expiringSoon record component.
      Returns:
      the value of the expiringSoon record component