Class CertificateInformation


  • public final class CertificateInformation
    extends Object
    SSL certificate information.
    • Constructor Detail

      • CertificateInformation

        public CertificateInformation()
    • Method Detail

      • expiry

        public OffsetDateTime expiry()
        Get the expiry property: Expiration date of the certificate. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
        Returns:
        the expiry value.
      • withExpiry

        public CertificateInformation withExpiry​(OffsetDateTime expiry)
        Set the expiry property: Expiration date of the certificate. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
        Parameters:
        expiry - the expiry value to set.
        Returns:
        the CertificateInformation object itself.
      • thumbprint

        public String thumbprint()
        Get the thumbprint property: Thumbprint of the certificate.
        Returns:
        the thumbprint value.
      • withThumbprint

        public CertificateInformation withThumbprint​(String thumbprint)
        Set the thumbprint property: Thumbprint of the certificate.
        Parameters:
        thumbprint - the thumbprint value to set.
        Returns:
        the CertificateInformation object itself.
      • subject

        public String subject()
        Get the subject property: Subject of the certificate.
        Returns:
        the subject value.
      • withSubject

        public CertificateInformation withSubject​(String subject)
        Set the subject property: Subject of the certificate.
        Parameters:
        subject - the subject value to set.
        Returns:
        the CertificateInformation object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.