Package com.oracle.bmc.datasafe.model
Class CryptoAssessmentCertificateSummary
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateSummary
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20181201") public final class CryptoAssessmentCertificateSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelSummary of one certificate discovered across targets in a compartment.
Note: Objects should always be created or deserialized using theCryptoAssessmentCertificateSummary.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 theCryptoAssessmentCertificateSummary.Builder, which maintain a set of all explicitly set fields calledCryptoAssessmentCertificateSummary.Builder.__explicitlySet__. ThehashCode()andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCryptoAssessmentCertificateSummary.Builderstatic classCryptoAssessmentCertificateSummary.CertificateTypeType of certificate.static classCryptoAssessmentCertificateSummary.StatusCertificate validity status.
-
Constructor Summary
Constructors Constructor Description CryptoAssessmentCertificateSummary(String assessmentId, Date timeLastAssessed, CryptoAssessment.Type assessmentType, String compartmentId, String targetId, String walletLocation, CryptoAssessmentCertificateSummary.CertificateType certificateType, String subject, String issuer, CryptoAssessmentCertificateSummary.Status status, String serialNumber, Long age, Date timeValidFrom, Date timeValidUntil, String expiryBucket, Integer daysToExpiry, String publicKeyType, String signatureAlgorithm)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CryptoAssessmentCertificateSummary.Builderbuilder()Create a new builder.booleanequals(Object o)LonggetAge()Age of the certificate in whole days, calculated from timeValidFrom using the current UTC date.StringgetAssessmentId()OCID of the crypto assessment that discovered the certificate.CryptoAssessment.TypegetAssessmentType()Type of the crypto assessment that discovered the certificate.CryptoAssessmentCertificateSummary.CertificateTypegetCertificateType()Type of certificate.StringgetCompartmentId()OCID of the compartment that contains the certificate row.IntegergetDaysToExpiry()Number of whole days until certificate expiration, calculated from timeValidUntil.StringgetExpiryBucket()Expiry bucket populated for the certificate when the assessment runs.StringgetIssuer()Issuer of the certificate.StringgetPublicKeyType()Public key type and size.StringgetSerialNumber()Certificate serial number.StringgetSignatureAlgorithm()Signature algorithm used by the certificate.CryptoAssessmentCertificateSummary.StatusgetStatus()Certificate validity status.StringgetSubject()Subject of the certificate.StringgetTargetId()OCID of the target database associated with the certificate.DategetTimeLastAssessed()The date and time the associated crypto assessment was last assessed, in RFC3339 format.DategetTimeValidFrom()Certificate validity start time in RFC3339 format.DategetTimeValidUntil()Certificate validity end time in RFC3339 format.StringgetWalletLocation()Wallet location where the certificate was discovered, if available.inthashCode()CryptoAssessmentCertificateSummary.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
CryptoAssessmentCertificateSummary
@Deprecated @ConstructorProperties({"assessmentId","timeLastAssessed","assessmentType","compartmentId","targetId","walletLocation","certificateType","subject","issuer","status","serialNumber","age","timeValidFrom","timeValidUntil","expiryBucket","daysToExpiry","publicKeyType","signatureAlgorithm"}) public CryptoAssessmentCertificateSummary(String assessmentId, Date timeLastAssessed, CryptoAssessment.Type assessmentType, String compartmentId, String targetId, String walletLocation, CryptoAssessmentCertificateSummary.CertificateType certificateType, String subject, String issuer, CryptoAssessmentCertificateSummary.Status status, String serialNumber, Long age, Date timeValidFrom, Date timeValidUntil, String expiryBucket, Integer daysToExpiry, String publicKeyType, String signatureAlgorithm)
Deprecated.
-
-
Method Detail
-
builder
public static CryptoAssessmentCertificateSummary.Builder builder()
Create a new builder.
-
toBuilder
public CryptoAssessmentCertificateSummary.Builder toBuilder()
-
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
-
getCertificateType
public CryptoAssessmentCertificateSummary.CertificateType getCertificateType()
Type of certificate.- 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
-
getStatus
public CryptoAssessmentCertificateSummary.Status getStatus()
Certificate validity status.- 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:
toStringin classcom.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:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-