クラス ServerHttpSecurity.OAuth2ResourceServerSpec
java.lang.ObjectSE
org.springframework.security.config.web.server.ServerHttpSecurity.OAuth2ResourceServerSpec
- 含まれているクラス:
- ServerHttpSecurity
OAuth2 リソースサーバーサポートの構成
ネストされたクラスの要約
ネストされたクラス修飾子と型クラス説明classJWT リソースサーバーサポートを構成しますfinal classOpaque トークン Resource Server サポートを構成しますコンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明accessDeniedHandler(ServerAccessDeniedHandler accessDeniedHandler) ベアラートークンで認証するリクエストに使用するようにServerAccessDeniedHandlerを構成します。ベアラートークンで認証するリクエストに使用するようにServerAuthenticationEntryPointを構成します。authenticationFailureHandler(ServerAuthenticationFailureHandler authenticationFailureHandler) authenticationManagerResolver(ReactiveAuthenticationManagerResolver<org.springframework.web.server.ServerWebExchange> authenticationManagerResolver) bearerTokenConverter(ServerAuthenticationConverter bearerTokenConverter) ベアラートークンで認証するリクエストに使用するようにServerAuthenticationConverterを構成します。protected voidconfigure(ServerHttpSecurity http) jwt(Customizer<ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec> jwtCustomizer) JWT リソースサーバーのサポートを有効にします。opaqueToken(Customizer<ServerHttpSecurity.OAuth2ResourceServerSpec.OpaqueTokenSpec> opaqueTokenCustomizer) Opaque トークンリソースサーバーのサポートを有効にします。
コンストラクターの詳細
OAuth2ResourceServerSpec
public OAuth2ResourceServerSpec()
メソッドの詳細
accessDeniedHandler
public ServerHttpSecurity.OAuth2ResourceServerSpec accessDeniedHandler(ServerAccessDeniedHandler accessDeniedHandler) ベアラートークンで認証するリクエストに使用するようにServerAccessDeniedHandlerを構成します。リクエスト。- パラメーター:
accessDeniedHandler- 使用するServerAccessDeniedHandler- 戻り値:
- 追加構成のための
ServerHttpSecurity.OAuth2ResourceServerSpec - 導入:
- 5.2
authenticationEntryPoint
public ServerHttpSecurity.OAuth2ResourceServerSpec authenticationEntryPoint(ServerAuthenticationEntryPoint entryPoint) ベアラートークンで認証するリクエストに使用するようにServerAuthenticationEntryPointを構成します。- パラメーター:
entryPoint- 使用するServerAuthenticationEntryPoint- 戻り値:
- 追加構成のための
ServerHttpSecurity.OAuth2ResourceServerSpec - 導入:
- 5.2
authenticationFailureHandler
public ServerHttpSecurity.OAuth2ResourceServerSpec authenticationFailureHandler(ServerAuthenticationFailureHandler authenticationFailureHandler) bearerTokenConverter
public ServerHttpSecurity.OAuth2ResourceServerSpec bearerTokenConverter(ServerAuthenticationConverter bearerTokenConverter) ベアラートークンで認証するリクエストに使用するようにServerAuthenticationConverterを構成します。- パラメーター:
bearerTokenConverter- 使用するServerAuthenticationConverter- 戻り値:
- 追加構成用の
ServerHttpSecurity.OAuth2ResourceServerSpec - 導入:
- 5.2
authenticationManagerResolver
public ServerHttpSecurity.OAuth2ResourceServerSpec authenticationManagerResolver(ReactiveAuthenticationManagerResolver<org.springframework.web.server.ServerWebExchange> authenticationManagerResolver) - パラメーター:
authenticationManagerResolver-ReactiveAuthenticationManagerResolver- 戻り値:
- 追加構成のための
ServerHttpSecurity.OAuth2ResourceServerSpec - 導入:
- 5.3
jwt
public ServerHttpSecurity.OAuth2ResourceServerSpec jwt(Customizer<ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec> jwtCustomizer) JWT リソースサーバーのサポートを有効にします。- パラメーター:
jwtCustomizer-Customizerを使用して、ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpecにより多くのオプションを提供します。- 戻り値:
ServerHttpSecurity.OAuth2ResourceServerSpecをカスタマイズする
opaqueToken
public ServerHttpSecurity.OAuth2ResourceServerSpec opaqueToken(Customizer<ServerHttpSecurity.OAuth2ResourceServerSpec.OpaqueTokenSpec> opaqueTokenCustomizer) Opaque トークンリソースサーバーのサポートを有効にします。- パラメーター:
opaqueTokenCustomizer-Customizerを使用して、ServerHttpSecurity.OAuth2ResourceServerSpec.OpaqueTokenSpecにより多くのオプションを提供します。- 戻り値:
ServerHttpSecurity.OAuth2ResourceServerSpecをカスタマイズする
configure