Package com.microsoft.azure.eventhubs
Class AzureActiveDirectoryTokenProvider
- java.lang.Object
-
- com.microsoft.azure.eventhubs.AzureActiveDirectoryTokenProvider
-
- All Implemented Interfaces:
ITokenProvider
public final class AzureActiveDirectoryTokenProvider extends Object implements ITokenProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AzureActiveDirectoryTokenProvider.AuthenticationCallback
-
Constructor Summary
Constructors Constructor Description AzureActiveDirectoryTokenProvider(AzureActiveDirectoryTokenProvider.AuthenticationCallback authenticationCallback, String authority, Object state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<SecurityToken>
getToken(String resource, Duration timeout)
-
-
-
Constructor Detail
-
AzureActiveDirectoryTokenProvider
public AzureActiveDirectoryTokenProvider(AzureActiveDirectoryTokenProvider.AuthenticationCallback authenticationCallback, String authority, Object state)
-
-
Method Detail
-
getToken
public CompletableFuture<SecurityToken> getToken(String resource, Duration timeout)
- Specified by:
getToken
in interfaceITokenProvider
-
-