Class TrustedDeviceDtoMapper
java.lang.Object
com.irurueta.authserver.authorization.api.web.mfa.TrustedDeviceDtoMapper
Maps the trusted devices of the domain onto the DTO generated from the contract, so a domain model is never
returned from
TrustedDeviceController. The hash of the device token never leaves the server.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoResponse(TrustedDevice device) Maps a device to its public view.toResponses(List<TrustedDevice> devices) Maps several devices, keeping their order.
-
Constructor Details
-
TrustedDeviceDtoMapper
public TrustedDeviceDtoMapper()
-
-
Method Details
-
toResponse
Maps a device to its public view.- Parameters:
device- the device.- Returns:
- its public view.
-
toResponses
Maps several devices, keeping their order.- Parameters:
devices- the devices.- Returns:
- their public views.
-