Interface AsyncFederationClient

    • Method Detail

      • getSecurityToken

        CompletableFuture<String> getSecurityToken()
        Gets a security token from the federation endpoint.

        May use a cached token if it judged to still be valid.

        Returns:
        A CompletableFuture that will complete with a security token that can be used to authenticate requests.
      • refreshAndGetSecurityToken

        CompletableFuture<String> refreshAndGetSecurityToken()
        Gets a security token from the federation endpoint.

        This will always retrieve a new token from the federation endpoint and does not use a cached token.

        Returns:
        A CompletableFuture that will complete with a security token that can be used to authenticate requests.
      • getStringClaim

        String getStringClaim​(String key)
        Get a claim embedded in the security token.

        May use the cached token if it is judged to still be valid.