protected List<MultifactorAuthenticationRegisteredDevice> mapAccount(final YubiKeyAccount acct) {
        return acct
            .getDevices()
            .stream()
            .map(device -> MultifactorAuthenticationRegisteredDevice.builder()
                .id(String.valueOf(device.getId()))
                .name(device.getName())
                .payload(device.toJson())
                .lastUsedDateTime(device.getRegistrationDate().toString())
                .model(device.getPublicId())
                .source(getSource().getFirst())
                .details(Map.of("providerId", multifactorAuthenticationProvider.getObject().getId()))
                .build())
            .collect(Collectors.toList());
    }
This is {@link YubiKeyMultifactorAuthenticatorDeviceManager}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-yubikey-core-mfa/src/main/java/org/apereo/cas/adaptors/yubikey/YubiKeyMultifactorAuthenticatorDeviceManager.java