Record Class CertificateEvent
java.lang.Object
java.lang.Record
io.micronaut.oraclecloud.certificates.events.CertificateEvent
- Record Components:
- privateKey- private key
- certificate- X509 certificate file
public record CertificateEvent(@NonNull PrivateKey privateKey, @NonNull X509Certificate certificate)
extends Record
Event used to alert when a new Oracle Cloud certificate is ready for use.
- 
Constructor SummaryConstructorsConstructorDescriptionCertificateEvent(@NonNull PrivateKey privateKey, @NonNull X509Certificate certificate) Creates an instance of aCertificateEventrecord class.
- 
Method SummaryModifier 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 PrivateKeyReturns the value of theprivateKeyrecord component.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details- 
CertificateEventpublic CertificateEvent(@NonNull @NonNull PrivateKey privateKey, @NonNull @NonNull X509Certificate certificate) Creates an instance of aCertificateEventrecord class.- Parameters:
- privateKey- the value for the- privateKeyrecord component
- certificate- the value for the- certificaterecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
privateKeyReturns the value of theprivateKeyrecord component.- Returns:
- the value of the privateKeyrecord component
 
- 
certificateReturns the value of thecertificaterecord component.- Returns:
- the value of the certificaterecord component
 
 
-