クラス X509AuthenticationProvider
java.lang.ObjectSE
org.springframework.ws.soap.security.x509.X509AuthenticationProvider
- 実装済みのインターフェース一覧:
org.springframework.beans.factory.Aware、org.springframework.beans.factory.InitializingBean、org.springframework.context.MessageSourceAware、org.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
フィールド概要
フィールドコンストラクター概要
コンストラクター方法の概要
修飾子と型メソッド説明voidorg.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication) 提供された認証トークンに証明書が含まれている場合、これは構成済みのX509AuthoritiesPopulatorに渡され、証明書によって識別されるユーザーのユーザー詳細と権限を取得します。voidsetMessageSource(org.springframework.context.MessageSource messageSource) voidsetX509AuthoritiesPopulator(X509AuthoritiesPopulator x509AuthoritiesPopulator) voidsetX509UserCache(X509UserCache cache) boolean
フィールドの詳細
messages
protected org.springframework.context.support.MessageSourceAccessor messages
コンストラクターの詳細
X509AuthenticationProvider
public X509AuthenticationProvider()
メソッドの詳細
afterPropertiesSet
- 次で指定:
- インターフェース
org.springframework.beans.factory.InitializingBeanのafterPropertiesSet - 例外:
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.AuthenticationProviderのauthenticate - パラメーター:
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.MessageSourceAwareのsetMessageSource
setX509AuthoritiesPopulator
setX509UserCache
supports
- 次で指定:
- インターフェース
org.springframework.security.authentication.AuthenticationProviderのsupports