protected MultifactorAuthenticationRegisteredDevice mapAccount(final OneTimeTokenAccount acct) {
        return MultifactorAuthenticationRegisteredDevice
            .builder()
            .id(String.valueOf(acct.getId()))
            .name(acct.getName())
            .lastUsedDateTime(acct.getLastUsedDateTime())
            .source(acct.getSource())
            .payload(acct.toJson())
            .details(Map.of("providerId", multifactorAuthenticationProvider.getObject().getId()))
            .build();
    }
This is {@link OneTimeTokenCredentialDeviceManager}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-otp-mfa-core/src/main/java/org/apereo/cas/otp/repository/credentials/OneTimeTokenCredentialDeviceManager.java