クラス ClientAttributes
java.lang.ObjectSE
org.springframework.security.oauth2.client.web.ClientAttributes
ClientRegistration.getRegistrationId()
を格納する属性へのアクセスに使用されます。これにより、ClientRegistrationIdProcessor
が RestClient
と WebClient
の両方の設定方法と一致することが保証されます。メソッドのサマリー
修飾子と型メソッド説明static ConsumerSE<MapSE<StringSE,
ObjectSE>> clientRegistrationId
(StringSE clientRegistrationId) OAuth2AuthorizedClient
の検索に使用するclientRegistrationId
を追加する Consumer を生成します。static StringSE
resolveClientRegistrationId
(MapSE<StringSE, ObjectSE> attributes) OAuth2AuthorizedClient
の検索に使用するclientRegistrationId
を解決します。
メソッドの詳細
resolveClientRegistrationId
OAuth2AuthorizedClient
の検索に使用するclientRegistrationId
を解決します。- パラメーター:
attributes
- 検索する- 戻り値:
- 使用する登録 ID。
clientRegistrationId
public static ConsumerSE<MapSE<StringSE,ObjectSE>> clientRegistrationId(StringSE clientRegistrationId) OAuth2AuthorizedClient
の検索に使用するclientRegistrationId
を追加する Consumer を生成します。- パラメーター:
clientRegistrationId
-OAuth2AuthorizedClient
を検索するために使用されるclientRegistrationId
- 戻り値:
- 属性を移入する
Consumer
SE