Class SharedAccessSignatureTokenProvider
- java.lang.Object
-
- com.microsoft.azure.eventhubs.impl.SharedAccessSignatureTokenProvider
-
- All Implemented Interfaces:
ITokenProvider
public class SharedAccessSignatureTokenProvider extends Object implements ITokenProvider
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
generateSharedAccessSignature(String keyName, String sharedAccessKey, String resource, Duration tokenTimeToLive)
CompletableFuture<SecurityToken>
getToken(String resource, Duration tokenTimeToLive)
-
-
-
Method Detail
-
generateSharedAccessSignature
public static String generateSharedAccessSignature(String keyName, String sharedAccessKey, String resource, Duration tokenTimeToLive) throws IOException, NoSuchAlgorithmException, InvalidKeyException
-
getToken
public CompletableFuture<SecurityToken> getToken(String resource, Duration tokenTimeToLive)
- Specified by:
getToken
in interfaceITokenProvider
-
-