クラス 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 StringSEresolveClientRegistrationId(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- 戻り値:
- 属性を移入する
ConsumerSE