private static YubiKeyAccount getStaticAccount(final String uid) {
        return YubiKeyAccount.builder()
            .username(uid)
            .id(System.currentTimeMillis())
            .devices(CollectionUtils.wrapArrayList(
                YubiKeyRegisteredDevice.builder()
                    .id(System.currentTimeMillis())
                    .name(UUID.randomUUID().toString())
                    .publicId(UUID.randomUUID().toString())
                    .registrationDate(ZonedDateTime.now(ZoneOffset.UTC))
                    .build()))
            .build();
    }
This is {@link OpenYubiKeyAccountRegistry}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-yubikey-core/src/main/java/org/apereo/cas/adaptors/yubikey/registry/OpenYubiKeyAccountRegistry.java