@GetMapping(path = "{username}", produces = MediaType.APPLICATION_JSON_VALUE)
    @Operation(summary = "Get Yubikey account for username",
        parameters = @Parameter(name = "username", required = true, description = "The username to look up"))
    public YubiKeyAccount get(@PathVariable final String username) {
        val result = registry.getObject().getAccount(username);
        return result.orElse(null);
    }
Get yubi key account.

@param username the username
@return the yubi key account
support/cas-server-support-yubikey-core/src/main/java/org/apereo/cas/adaptors/yubikey/registry/YubiKeyAccountRegistryEndpoint.java