java.lang.Object
com.irurueta.authserver.authorization.api.web.passkeys.PasskeyDtoMapper

@Component public class PasskeyDtoMapper extends Object
Maps the passkeys of the domain onto the DTO generated from the contract. The user handle the domain keeps is not part of the contract and never leaves the server.
  • Constructor Details

    • PasskeyDtoMapper

      public PasskeyDtoMapper()
  • Method Details

    • toResponse

      public Passkey toResponse(Passkey passkey)
      Maps a passkey to its public view.
      Parameters:
      passkey - the passkey.
      Returns:
      its public view.
    • toResponses

      public List<Passkey> toResponses(List<Passkey> passkeys)
      Maps several passkeys, keeping their order.
      Parameters:
      passkeys - the passkeys.
      Returns:
      their public views.