类 AuthenticationFactoryOAuth2
java.lang.Object
org.apache.pulsar.client.impl.auth.oauth2.AuthenticationFactoryOAuth2
Factory class that allows to create
Authentication instances
for OAuth 2.0 authentication methods.-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static AuthenticationclientCredentials(URL issuerUrl, URL credentialsUrl, String audience) Authenticate with client credentials.static AuthenticationclientCredentials(URL issuerUrl, URL credentialsUrl, String audience, String scope) Authenticate with client credentials.
-
构造器详细资料
-
AuthenticationFactoryOAuth2
public AuthenticationFactoryOAuth2()
-
-
方法详细资料
-
clientCredentials
Authenticate with client credentials.- 参数:
issuerUrl- the issuer URLcredentialsUrl- the credentials URLaudience- An optional field. The audience identifier used by some Identity Providers, like Auth0.- 返回:
- an Authentication object
-
clientCredentials
public static Authentication clientCredentials(URL issuerUrl, URL credentialsUrl, String audience, String scope) Authenticate with client credentials.- 参数:
issuerUrl- the issuer URLcredentialsUrl- the credentials URLaudience- An optional field. The audience identifier used by some Identity Providers, like Auth0.scope- An optional field. The value of the scope parameter is expressed as a list of space-delimited, case-sensitive strings. The strings are defined by the authorization server. If the value contains multiple space-delimited strings, their order does not matter, and each string adds an additional access range to the requested scope. From here: https://datatracker.ietf.org/doc/html/rfc6749#section-4.4.2- 返回:
- an Authentication object
-