Package com.oracle.bmc.auth.internal
Interface AsyncFederationClient
-
- All Known Implementing Classes:
AbstractAsyncFederationClient,WorkloadIdentityFederationClient
public interface AsyncFederationClientInterface for asynchronous federation clients that handle security token retrieval and management.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<String>getSecurityToken()Gets a security token from the federation endpoint.StringgetStringClaim(String key)Get a claim embedded in the security token.CompletableFuture<String>refreshAndGetSecurityToken()Gets a security token from the federation endpoint.
-
-
-
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.
-
-