Class CryptoAssessmentCertificateSummary


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20181201")
    public final class CryptoAssessmentCertificateSummary
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    Summary of one certificate discovered across targets in a compartment.
    Note: Objects should always be created or deserialized using the CryptoAssessmentCertificateSummary.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the CryptoAssessmentCertificateSummary.Builder, which maintain a set of all explicitly set fields called CryptoAssessmentCertificateSummary.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
    • Method Detail

      • getAssessmentId

        public String getAssessmentId()
        OCID of the crypto assessment that discovered the certificate.
        Returns:
        the value
      • getTimeLastAssessed

        public Date getTimeLastAssessed()
        The date and time the associated crypto assessment was last assessed, in RFC3339 format.
        Returns:
        the value
      • getAssessmentType

        public CryptoAssessment.Type getAssessmentType()
        Type of the crypto assessment that discovered the certificate.
        Returns:
        the value
      • getCompartmentId

        public String getCompartmentId()
        OCID of the compartment that contains the certificate row.
        Returns:
        the value
      • getTargetId

        public String getTargetId()
        OCID of the target database associated with the certificate.
        Returns:
        the value
      • getWalletLocation

        public String getWalletLocation()
        Wallet location where the certificate was discovered, if available.
        Returns:
        the value
      • getSubject

        public String getSubject()
        Subject of the certificate.
        Returns:
        the value
      • getIssuer

        public String getIssuer()
        Issuer of the certificate.
        Returns:
        the value
      • getSerialNumber

        public String getSerialNumber()
        Certificate serial number.
        Returns:
        the value
      • getAge

        public Long getAge()
        Age of the certificate in whole days, calculated from timeValidFrom using the current UTC date.
        Returns:
        the value
      • getTimeValidFrom

        public Date getTimeValidFrom()
        Certificate validity start time in RFC3339 format.
        Returns:
        the value
      • getTimeValidUntil

        public Date getTimeValidUntil()
        Certificate validity end time in RFC3339 format.
        Returns:
        the value
      • getExpiryBucket

        public String getExpiryBucket()
        Expiry bucket populated for the certificate when the assessment runs.

        Supported values are 0_15, 15_30, 30_60, 60_90, and 90_PLUS.

        Returns:
        the value
      • getDaysToExpiry

        public Integer getDaysToExpiry()
        Number of whole days until certificate expiration, calculated from timeValidUntil.

        Negative values indicate already expired certificates.

        Returns:
        the value
      • getPublicKeyType

        public String getPublicKeyType()
        Public key type and size.
        Returns:
        the value
      • getSignatureAlgorithm

        public String getSignatureAlgorithm()
        Signature algorithm used by the certificate.
        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel