クラス RunAsImplAuthenticationProvider
java.lang.ObjectSE
org.springframework.security.access.intercept.RunAsImplAuthenticationProvider
- 実装されたすべてのインターフェース:
org.springframework.beans.factory.Aware
、org.springframework.beans.factory.InitializingBean
、org.springframework.context.MessageSourceAware
、AuthenticationProvider
@DeprecatedSE
public class RunAsImplAuthenticationProvider
extends ObjectSE
implements org.springframework.beans.factory.InitializingBean, AuthenticationProvider, org.springframework.context.MessageSourceAware
使用すべきではありません。
Spring Security では、認証が認可から分離されました。このクラスは、非推奨になったコンポーネントでのみ使用されます。Spring Security にはまだ同等の代替がありません。
RunAsUserToken
を認証できる AuthenticationProvider
実装。RunAsUserToken
を生成するためにアダプターが使用するキーと一致する必要があるキーを使用して、Bean コンテキストで構成されます。RunAsImplAuthenticationProvider
-configured キーに一致するハッシュコードを提示するすべての RunAsUserToken
インスタンスを有効として扱います。
キーが一致しない場合、BadCredentialsException
がスローされます。
フィールドサマリー
フィールド修飾子と型フィールド説明protected org.springframework.context.support.MessageSourceAccessor
使用すべきではありません。コンストラクターのサマリー
コンストラクターメソッドのサマリー
修飾子と型メソッド説明void
使用すべきではありません。authenticate
(Authentication authentication) 使用すべきではありません。AuthenticationManager.authenticate(Authentication)
と同じ契約で認証を実行します。getKey()
使用すべきではありません。void
使用すべきではありません。void
setMessageSource
(org.springframework.context.MessageSource messageSource) 使用すべきではありません。boolean
使用すべきではありません。このAuthenticationProvider
が指定されたAuthentication
オブジェクトをサポートする場合、true
を返します。
フィールドの詳細
messages
protected org.springframework.context.support.MessageSourceAccessor messages使用すべきではありません。
コンストラクターの詳細
RunAsImplAuthenticationProvider
public RunAsImplAuthenticationProvider()使用すべきではありません。
メソッドの詳細
afterPropertiesSet
public void afterPropertiesSet()使用すべきではありません。- 次で指定:
- インターフェース
org.springframework.beans.factory.InitializingBean
のafterPropertiesSet
authenticate
使用すべきではありません。インターフェースからコピーされた説明:AuthenticationProvider
AuthenticationManager.authenticate(Authentication)
と同じ契約で認証を実行します。- 次で指定:
- インターフェース
AuthenticationProvider
のauthenticate
- パラメーター:
authentication
- 認証リクエストオブジェクト。- 戻り値:
- 資格情報を含む完全に認証されたオブジェクト。
AuthenticationProvider
が、渡されたAuthentication
オブジェクトの認証をサポートできない場合、null
を返すことがあります。そのような場合、提示されたAuthentication
クラスをサポートする次のAuthenticationProvider
が試行されます。 - 例外:
AuthenticationException
- 認証が失敗した場合。
getKey
使用すべきではありません。setKey
使用すべきではありません。setMessageSource
public void setMessageSource(org.springframework.context.MessageSource messageSource) 使用すべきではありません。- 次で指定:
- インターフェース
org.springframework.context.MessageSourceAware
のsetMessageSource
supports
使用すべきではありません。インターフェースからコピーされた説明:AuthenticationProvider
このAuthenticationProvider
が指定されたAuthentication
オブジェクトをサポートする場合、true
を返します。true
を返しても、AuthenticationProvider
が提示されたAuthentication
オブジェクトを認証できることは保証されません。これは単に、より詳細な評価をサポートできることを示しているだけです。AuthenticationProvider
は、AuthenticationProvider.authenticate(Authentication)
メソッドからnull
を返して、別のAuthenticationProvider
を試す必要があることを示すことができます。認証を実行できる
AuthenticationProvider
の選択は、実行時にProviderManager
で行われます。- 次で指定:
- インターフェース
AuthenticationProvider
のsupports
- 戻り値:
- 実装が提示された
Authentication
クラスをより厳密に評価できる場合はtrue