TokenProvider.getSecurityTokenAsync(String audience) 方法

定义

Asynchronously gets a security token for the given audience. Implementations of this method may choose to create a new token for every call or return a cached token. But the token returned must be valid.

public abstract CompletableFuture<SecurityToken> getSecurityTokenAsync(String audience)

参数

audience
String

path of the entity for which this security token is to be presented

返回

abstract CompletableFuture<SecurityToken>

an instance of CompletableFuture which returns a SecurityToken on completion.

适用于