Record Class BootstrapTokenRejected
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.audit.BootstrapTokenRejected
- Record Components:
timestamp- UTC creation time, nevernullreason- short reason key (e.g."Unknown","Expired","AlreadyUsed","Malformed"), nevernullclientAddress- remote client address that submitted the token, ornull
- All Implemented Interfaces:
AuditEvent
public record BootstrapTokenRejected(Instant timestamp, String reason, String clientAddress)
extends Record
implements AuditEvent
A bootstrap-token submission was rejected. Causes include unknown
tokens, expired tokens, already-used tokens, and malformed tokens.
-
Constructor Summary
ConstructorsConstructorDescriptionBootstrapTokenRejected(Instant timestamp, String reason, String clientAddress) Creates an instance of aBootstrapTokenRejectedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclientAddressrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.reason()Returns the value of thereasonrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BootstrapTokenRejected
Creates an instance of aBootstrapTokenRejectedrecord class.- Parameters:
timestamp- the value for thetimestamprecord componentreason- the value for thereasonrecord componentclientAddress- the value for theclientAddressrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
timestamp
Returns the value of thetimestamprecord component.- Specified by:
timestampin interfaceAuditEvent- Returns:
- the value of the
timestamprecord component
-
reason
-
clientAddress
Returns the value of theclientAddressrecord component.- Returns:
- the value of the
clientAddressrecord component
-