### Description

The [Get API key information API](https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-get-api-key.html) can currently filter the returned keys by:
 * key id/name
 * keys owned by the calling user
 * keys owned by other users, by `realm_name` and `username`

Irrespective of the filtering used, both invalidated and expired (but not yet deleted) keys will be included in the response.
In the response, keys have the `invalidated` boolean property, as well as the `expiration` property that contains the UNIX timestamp past of which the key is no longer valid for authentication.

I propose we introduce a way for the API to support retrieving:
* only valid API keys (not return invalidated keys) - using a boolean request parameter
* keys not expired before a certain timestamp - using a timestamp parameter that defaults to "now" - also note that keys' experiation date is always checked against the local node's clock
x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/ApiKeyServiceTests.java
final String apiKey2 = randomAlphaOfLength(16);
        final Map<String, Object> sourceMap2 = buildApiKeySourceDoc(hasher.hash(new SecureString(apiKey2.toCharArray())));
        mockSourceDocument(apiKeyId2, sourceMap2);
        final ApiKeyCredentials creds2 = getApiKeyCredentials(apiKeyId2, apiKey2, parseTypeFromSourceMap(sourceMap2));
        final PlainActionFuture<AuthenticationResult<User>> future2 = new PlainActionFuture<>();
        service.tryAuthenticate(threadPool.getThreadContext(), creds2, future2);
        final AuthenticationResult<User> authenticationResult2 = future2.get();
        assertEquals(AuthenticationResult.Status.TERMINATE, authenticationResult2.getStatus());
        assertThat(authenticationResult2.getMessage(), containsString("server is too busy to respond"));
        
        mockSourceDocument(apiKeyId1, sourceMap);
        final PlainActionFuture<AuthenticationResult<User>> future3 = new PlainActionFuture<>();
        service.tryAuthenticate(
            threadPool.getThreadContext(),
            getApiKeyCredentials(apiKeyId1, apiKey1, parseTypeFromSourceMap(sourceMap)),
            future3
        );
        final AuthenticationResult<User> authenticationResult3 = future3.get();
        assertEquals(AuthenticationResult.Status.SUCCESS, authenticationResult3.getStatus());
        checkAuthApiKeyMetadata(metadata, authenticationResult3);
    }
    @SuppressWarnings("unchecked")
    public void testApiKeyDocDeserialization() throws IOException {
        final String apiKeyDocumentSource = """
            {
              "doc_type": "api_key",
              "creation_time": 1591919944598,
              "expiration_time": 1591919944599,
              "api_key_invalidated": false,
              "api_key_hash": "{PBKDF2}10000$abc",