类 DefaultMetadataResolver
java.lang.Object
org.apache.pulsar.client.impl.auth.oauth2.protocol.DefaultMetadataResolver
- 所有已实现的接口:
MetadataResolver
Resolves OAuth 2.0 authorization server metadata as described in RFC 8414.
-
字段概要
字段修饰符和类型字段说明protected static final intprotected static final int -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static DefaultMetadataResolverfromIssuerUrl(URL issuerUrl) Gets a well-known metadata URL for the given OAuth issuer URL.static URLgetWellKnownMetadataUrl(URL issuerUrl) Gets a well-known metadata URL for the given OAuth issuer URL.resolve()Resolves the authorization metadata.withConnectTimeout(Duration connectTimeout) withReadTimeout(Duration readTimeout)
-
字段详细资料
-
构造器详细资料
-
DefaultMetadataResolver
-
-
方法详细资料
-
withConnectTimeout
-
withReadTimeout
-
resolve
Resolves the authorization metadata.- 指定者:
resolve在接口中MetadataResolver- 返回:
- metadata
- 抛出:
IOException- if the metadata could not be resolved.
-
fromIssuerUrl
Gets a well-known metadata URL for the given OAuth issuer URL.- 参数:
issuerUrl- The authorization server's issuer identifier- 返回:
- a resolver
-
getWellKnownMetadataUrl
Gets a well-known metadata URL for the given OAuth issuer URL.- 参数:
issuerUrl- The authorization server's issuer identifier- 返回:
- a URL
- 另请参阅:
-