インターフェース AuthenticationConverter

すべての既知の実装クラス:
BasicAuthenticationConverterBearerTokenAuthenticationConverterClientSecretBasicAuthenticationConverterClientSecretPostAuthenticationConverterDelegatingAuthenticationConverterJwtClientAssertionAuthenticationConverterOAuth2AuthorizationCodeAuthenticationConverterOAuth2AuthorizationCodeRequestAuthenticationConverterOAuth2AuthorizationConsentAuthenticationConverterOAuth2ClientCredentialsAuthenticationConverterOAuth2ClientRegistrationAuthenticationConverterOAuth2DeviceAuthorizationConsentAuthenticationConverterOAuth2DeviceAuthorizationRequestAuthenticationConverterOAuth2DeviceCodeAuthenticationConverterOAuth2DeviceVerificationAuthenticationConverterOAuth2RefreshTokenAuthenticationConverterOAuth2TokenExchangeAuthenticationConverterOAuth2TokenIntrospectionAuthenticationConverterOAuth2TokenRevocationAuthenticationConverterOidcClientRegistrationAuthenticationConverterOidcLogoutAuthenticationConverterOneTimeTokenAuthenticationConverterPublicClientAuthenticationConverterSaml2AuthenticationTokenConverterX509ClientCertificateAuthenticationConverter

public interface AuthenticationConverter
HttpServletRequest から特定の型の Authentication に変換するために使用される戦略。適切な AuthenticationManager での認証に使用されます。結果が null の場合、認証を試みてはならないことを示します。無効な認証スキームの値があった場合、convert(HttpServletRequest) 内で AuthenticationException をスローすることも可能です。
導入:
5.2.0
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    @Nullable Authentication
    convert(jakarta.servlet.http.HttpServletRequest request)
  • メソッドの詳細

    • convert

      @Nullable Authentication convert(jakarta.servlet.http.HttpServletRequest request)