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
ConstructorsConstructorDescriptionCertificateEvent(@NonNull PrivateKey privateKey, @NonNull X509Certificate certificate, @NonNull List<X509Certificate> intermediate) Creates an instance of aCertificateEventrecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull X509CertificateReturns the value of thecertificaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NonNull List<X509Certificate>Returns the value of theintermediaterecord component.@NonNull PrivateKeyReturns the value of theprivateKeyrecord component.final StringtoString()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 aCertificateEventrecord class.- Parameters:
privateKey- the value for theprivateKeyrecord componentcertificate- the value for thecertificaterecord componentintermediate- the value for theintermediaterecord 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 theprivateKeyrecord component.- Returns:
- the value of the
privateKeyrecord component
-
certificate
Returns the value of thecertificaterecord component.- Returns:
- the value of the
certificaterecord component
-
intermediate
Returns the value of theintermediaterecord component.- Returns:
- the value of the
intermediaterecord component
-