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 Details

    • id

      @NotNull @Valid private final @NotNull @Valid UUID id
      The field for the id record component.
    • userAgentSummary

      @Nullable private final String userAgentSummary
      The field for the userAgentSummary record component.
    • createdAt

      @DateTimeFormat(iso=DATE_TIME) @NotNull @Valid private final @NotNull @Valid Instant createdAt
      The field for the createdAt record component.
    • expiresAt

      @DateTimeFormat(iso=DATE_TIME) @NotNull @Valid private final @NotNull @Valid Instant expiresAt
      The field for the expiresAt record 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 a TrustedDeviceResponse record class.
      Parameters:
      id - the value for the id record component
      userAgentSummary - the value for the userAgentSummary record component
      createdAt - the value for the createdAt record component
      expiresAt - the value for the expiresAt record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      @NotNull @Valid public @NotNull @Valid UUID id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • userAgentSummary

      @Nullable public String userAgentSummary()
      Returns the value of the userAgentSummary record component.
      Returns:
      the value of the userAgentSummary record component
    • createdAt

      @DateTimeFormat(iso=DATE_TIME) @NotNull @Valid public @NotNull @Valid Instant createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component
    • expiresAt

      @DateTimeFormat(iso=DATE_TIME) @NotNull @Valid public @NotNull @Valid Instant expiresAt()
      Returns the value of the expiresAt record component.
      Returns:
      the value of the expiresAt record component