Record Class CSEventCertificateValidityRemaining
java.lang.Object
java.lang.Record
com.io7m.certusine.vanilla.internal.events.CSEventCertificateValidityRemaining
- Record Components:
domain- The domaincertificateName- The certificate nameseconds- The seconds remaining
- All Implemented Interfaces:
CSEventType
public record CSEventCertificateValidityRemaining(String domain, CSCertificateName certificateName, long seconds)
extends Record
implements CSEventType
The certificate expires in the given number of seconds.
-
Constructor Summary
ConstructorsConstructorDescriptionCSEventCertificateValidityRemaining(String domain, CSCertificateName certificateName, long seconds) The certificate expires in the given number of seconds. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecertificateNamerecord component.domain()Returns the value of thedomainrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanbooleanisLogged()message()longseconds()Returns the value of thesecondsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CSEventCertificateValidityRemaining
public CSEventCertificateValidityRemaining(String domain, CSCertificateName certificateName, long seconds) The certificate expires in the given number of seconds.- Parameters:
domain- The domaincertificateName- The certificate nameseconds- The seconds remaining
-
-
Method Details
-
message
- Specified by:
messagein interfaceCSEventType- Returns:
- The event message
-
isFailure
public boolean isFailure()- Specified by:
isFailurein interfaceCSEventType- Returns:
trueif the event indicates that an operation failed
-
isLogged
public boolean isLogged()- Specified by:
isLoggedin interfaceCSEventType- Returns:
trueif the event should be logged
-
attributes
- Specified by:
attributesin interfaceCSEventType- Returns:
- The event attributes for logging purposes
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
domain
-
certificateName
Returns the value of thecertificateNamerecord component.- Returns:
- the value of the
certificateNamerecord component
-
seconds
-