クラス X509AuthenticationProvider

java.lang.ObjectSE
org.springframework.ws.soap.security.x509.X509AuthenticationProvider
実装済みのインターフェース一覧:
org.springframework.beans.factory.Awareorg.springframework.beans.factory.InitializingBeanorg.springframework.context.MessageSourceAwareorg.springframework.security.authentication.AuthenticationProvider

public class X509AuthenticationProvider extends ObjectSE implements org.springframework.security.authentication.AuthenticationProvider, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware
X.509 認証リクエストを処理します。

Spring Security 3 で削除されたため、Spring Security 2 から移行されました。

バージョン:
$Id: X509AuthenticationProvider.java 3256 2008-08-18 18:20:48Z luke_t$
作成者:
Luke Taylor
  • フィールドの詳細

    • messages

      protected org.springframework.context.support.MessageSourceAccessor messages
  • コンストラクターの詳細

    • X509AuthenticationProvider

      public X509AuthenticationProvider()
  • メソッドの詳細

    • afterPropertiesSet

      public void afterPropertiesSet() throws ExceptionSE
      次で指定:
      インターフェース org.springframework.beans.factory.InitializingBeanafterPropertiesSet 
      例外:
      ExceptionSE
    • authenticate

      public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
      提供された認証トークンに証明書が含まれている場合、これは構成済みの X509AuthoritiesPopulator に渡され、証明書によって識別されるユーザーのユーザー詳細と権限を取得します。

      証明書が存在しない場合(たとえば、コンテナーでクライアント認証が構成されていない HttpRequest にフィルターが適用されている場合)、BadCredentialsException が発生します。

      次で指定:
      インターフェース org.springframework.security.authentication.AuthenticationProviderauthenticate 
      パラメーター:
      authentication - 認証リクエスト。
      戻り値:
      証明書によって表されるプリンシパルの権限を含む X509AuthenticationToken。
      例外:
      org.springframework.security.core.AuthenticationException - X509AuthoritiesPopulator が証明書を拒否した場合。
      org.springframework.security.authentication.BadCredentialsException - 認証リクエストで証明書が提示されなかった場合。
    • setMessageSource

      public void setMessageSource(org.springframework.context.MessageSource messageSource)
      次で指定:
      インターフェース org.springframework.context.MessageSourceAwaresetMessageSource 
    • setX509AuthoritiesPopulator

      public void setX509AuthoritiesPopulator(X509AuthoritiesPopulator x509AuthoritiesPopulator)
    • setX509UserCache

      public void setX509UserCache(X509UserCache cache)
    • supports

      public boolean supports(ClassSE<?> authentication)
      次で指定:
      インターフェース org.springframework.security.authentication.AuthenticationProvidersupports