类 TokenClient
java.lang.Object
org.apache.pulsar.client.impl.auth.oauth2.protocol.TokenClient
- 所有已实现的接口:
AutoCloseable,ClientCredentialsExchanger
A client for an OAuth 2.0 token endpoint.
-
字段概要
字段修饰符和类型字段说明protected static final intprotected static final int -
构造器概要
构造器 -
方法概要
-
字段详细资料
-
构造器详细资料
-
TokenClient
-
-
方法详细资料
-
close
- 指定者:
close在接口中AutoCloseable- 抛出:
Exception
-
exchangeClientCredentials
public TokenResult exchangeClientCredentials(ClientCredentialsExchangeRequest req) throws TokenExchangeException, IOException Performs a token exchange using client credentials.- 指定者:
exchangeClientCredentials在接口中ClientCredentialsExchanger- 参数:
req- the client credentials request details.- 返回:
- a token result
- 抛出:
TokenExchangeExceptionIOException- if a general IO error occurred.
-