private static Map<String, AttributeValue> buildTableAttributeValuesMap(final MultifactorAuthenticationTrustRecord record) {
        val values = new HashMap<String, AttributeValue>();
        values.put(ColumnNames.ID.getColumnName(), AttributeValue.builder().s(String.valueOf(record.getId())).build());
        values.put(ColumnNames.NAME.getColumnName(), AttributeValue.builder().s(record.getName()).build());
        values.put(ColumnNames.PRINCIPAL.getColumnName(), AttributeValue.builder().s(record.getPrincipal()).build());
        values.put(ColumnNames.DEVICE_FINGERPRINT.getColumnName(), AttributeValue.builder().s(record.getDeviceFingerprint()).build());
        values.put(ColumnNames.RECORD_KEY.getColumnName(), AttributeValue.builder().s(record.getRecordKey()).build());

        val recordDate = DateTimeUtils.dateOf(record.getRecordDate()).getTime();
        values.put(ColumnNames.RECORD_DATE.getColumnName(), AttributeValue.builder().s(String.valueOf(recordDate)).build());

        val expDate = record.getExpirationDate().getTime();
        values.put(ColumnNames.EXPIRATION_DATE.getColumnName(), AttributeValue.builder().s(String.valueOf(expDate)).build());

        LOGGER.debug("Created attribute values [{}] based on [{}]", values, record);
        return values;
    }
Build table attribute values map map.

@param record the record
@return the map
support/cas-server-support-trusted-mfa-dynamodb/src/main/java/org/apereo/cas/trusted/authentication/storage/DynamoDbMultifactorTrustEngineFacilitator.java