Record Class TrustedDeviceResponse
java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.api.web.v1.generated.model.TrustedDeviceResponse
- Record Components:
id- Identifier of the trusted device.userAgentSummary- Short description of the browser, taken from its user agent; absent when unknown.createdAt- When the device was trusted.expiresAt- When the device stops being trusted.
@Generated(value="org.openapitools.codegen.languages.SpringCodegen",
date="2026-11-08T20:21:45.782821081Z[Etc/UTC]",
comments="Generator version: 7.27.0")
public record TrustedDeviceResponse(@NotNull @Valid UUID id, String userAgentSummary, @NotNull @Valid Instant createdAt, @NotNull @Valid Instant expiresAt)
extends Record
A browser on which the second factor is skipped until it expires
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NotNull @Valid InstantThe field for thecreatedAtrecord component.private final @NotNull @Valid InstantThe field for theexpiresAtrecord component.private final @NotNull @Valid UUIDThe field for theidrecord component.private final StringThe field for theuserAgentSummaryrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTrustedDeviceResponse(@NotNull @Valid UUID id, String userAgentSummary, @NotNull @Valid Instant createdAt, @NotNull @Valid Instant expiresAt) Creates an instance of aTrustedDeviceResponserecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull @Valid InstantReturns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull @Valid InstantReturns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.@NotNull @Valid UUIDid()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserAgentSummaryrecord component.
-
Field Details
-
id
The field for theidrecord component. -
userAgentSummary
The field for theuserAgentSummaryrecord component. -
createdAt
The field for thecreatedAtrecord component. -
expiresAt
The field for theexpiresAtrecord component.
-
-
Constructor Details
-
TrustedDeviceResponse
public TrustedDeviceResponse(@NotNull @Valid @NotNull @Valid UUID id, @Nullable String userAgentSummary, @DateTimeFormat(iso=DATE_TIME) @NotNull @Valid @NotNull @Valid Instant createdAt, @DateTimeFormat(iso=DATE_TIME) @NotNull @Valid @NotNull @Valid Instant expiresAt) Creates an instance of aTrustedDeviceResponserecord class.- Parameters:
id- the value for theidrecord componentuserAgentSummary- the value for theuserAgentSummaryrecord componentcreatedAt- the value for thecreatedAtrecord componentexpiresAt- the value for theexpiresAtrecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
userAgentSummary
Returns the value of theuserAgentSummaryrecord component.- Returns:
- the value of the
userAgentSummaryrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-