Record Class CertificateEvent
java.lang.Object
java.lang.Record
io.micronaut.oraclecloud.certificates.events.CertificateEvent
- Record Components:
privateKey
- private keycertificate
- X509 certificate fileintermediate
- X509 certificate intermediate files
public record CertificateEvent(@NonNull PrivateKey privateKey, @NonNull X509Certificate certificate, @NonNull List<X509Certificate> intermediate)
extends Record
Event used to alert when a new Oracle Cloud certificate is ready for use.
-
Constructor Summary
ConstructorDescriptionCertificateEvent
(@NonNull PrivateKey privateKey, @NonNull X509Certificate certificate, @NonNull List<X509Certificate> intermediate) Creates an instance of aCertificateEvent
record class. -
Method Summary
Modifier and TypeMethodDescription@NonNull X509Certificate
Returns the value of thecertificate
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NonNull List<X509Certificate>
Returns the value of theintermediate
record component.@NonNull PrivateKey
Returns the value of theprivateKey
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CertificateEvent
public CertificateEvent(@NonNull @NonNull PrivateKey privateKey, @NonNull @NonNull X509Certificate certificate, @NonNull @NonNull List<X509Certificate> intermediate) Creates an instance of aCertificateEvent
record class.- Parameters:
privateKey
- the value for theprivateKey
record componentcertificate
- the value for thecertificate
record componentintermediate
- the value for theintermediate
record component
-
-
Method Details
-
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. -
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. -
equals
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
privateKey
Returns the value of theprivateKey
record component.- Returns:
- the value of the
privateKey
record component
-
certificate
Returns the value of thecertificate
record component.- Returns:
- the value of the
certificate
record component
-
intermediate
Returns the value of theintermediate
record component.- Returns:
- the value of the
intermediate
record component
-