Package com.affinda.api.client
Class AffindaTokenCredential
- java.lang.Object
-
- com.affinda.api.client.AffindaTokenCredential
-
- All Implemented Interfaces:
com.azure.core.credential.TokenCredential
public class AffindaTokenCredential extends Object implements com.azure.core.credential.TokenCredential
-
-
Constructor Summary
Constructors Constructor Description AffindaTokenCredential(String APIKey)Creates an instance of the AffindaTokenCredneital.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.azure.core.credential.AccessTokengetAPIToken()reactor.core.publisher.Mono<com.azure.core.credential.AccessToken>getToken(com.azure.core.credential.TokenRequestContext request)Just returns the API token
-
-
-
Constructor Detail
-
AffindaTokenCredential
public AffindaTokenCredential(String APIKey)
Creates an instance of the AffindaTokenCredneital.
-
-
Method Detail
-
getAPIToken
public com.azure.core.credential.AccessToken getAPIToken()
-
getToken
public reactor.core.publisher.Mono<com.azure.core.credential.AccessToken> getToken(com.azure.core.credential.TokenRequestContext request)
Just returns the API token- Specified by:
getTokenin interfacecom.azure.core.credential.TokenCredential- Parameters:
request- the details of the token request- Returns:
- a Publisher that emits a single access token
-
-