クラス GlobalMethodSecurityConfiguration
java.lang.ObjectSE
org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration
- 実装されたすべてのインターフェース:
org.springframework.beans.factory.Aware
、org.springframework.beans.factory.BeanFactoryAware
、org.springframework.beans.factory.SmartInitializingSingleton
、org.springframework.context.annotation.ImportAware
@DeprecatedSE
@Configuration(proxyBeanMethods=false)
@Role(2)
public class GlobalMethodSecurityConfiguration
extends ObjectSE
implements org.springframework.context.annotation.ImportAware, org.springframework.beans.factory.SmartInitializingSingleton, org.springframework.beans.factory.BeanFactoryAware
使用すべきではありません。
グローバルメソッドセキュリティを有効にするためのベース
Configuration
。クラスはこのクラスを継承してデフォルトをカスタマイズできますが、サブクラスに EnableGlobalMethodSecurity
アノテーションを指定する必要があります。- 導入:
- 3.2
- 関連事項:
コンストラクターのサマリー
メソッドのサマリー
修飾子と型メソッド説明protected AccessDecisionManager
使用すべきではありません。サブクラスがカスタムAccessDecisionManager
を提供できるようにします。protected AfterInvocationManager
使用すべきではありません。methodSecurityInterceptor(MethodSecurityMetadataSource)
のデフォルト実装にカスタムAfterInvocationManager
を提供します。void
使用すべきではありません。protected AuthenticationManager
使用すべきではありません。カスタムAuthenticationManager
を提供できます。protected void
使用すべきではありません。サブクラスはこのメソッドをオーバーライドして、さまざまな型の認証を登録できます。protected MethodSecurityExpressionHandler
使用すべきではありません。ExpressionBasedPreInvocationAdvice
に登録されているMethodSecurityExpressionHandler
を提供します。protected MethodSecurityMetadataSource
使用すべきではありません。methodSecurityMetadataSource()
に登録されているカスタムMethodSecurityMetadataSource
を提供します。protected final MethodSecurityExpressionHandler
使用すべきではありません。MethodSecurityExpressionHandler
を取得するか、expressionHandler
を使用して作成します。org.aopalliance.intercept.MethodInterceptor
methodSecurityInterceptor
(MethodSecurityMetadataSource methodSecurityMetadataSource) 使用すべきではありません。次のメソッドを使用して MethodSecurityInterceptor を構成するデフォルトの MethodInterceptor を作成します。使用すべきではありません。使用されるデフォルトのMethodSecurityMetadataSource
を提供します。使用すべきではありません。使用するPreInvocationAuthorizationAdvice
を作成します。protected RunAsManager
使用すべきではありません。methodSecurityInterceptor(MethodSecurityMetadataSource)
のデフォルト実装にカスタムRunAsManager
を提供します。void
setBeanFactory
(org.springframework.beans.factory.BeanFactory beanFactory) 使用すべきではありません。final void
setImportMetadata
(org.springframework.core.type.AnnotationMetadata importMetadata) 使用すべきではありません。このクラスがEnableGlobalMethodSecurity
アノテーションを使用してインポートされた場合、EnableGlobalMethodSecurity
から属性を取得します。void
使用すべきではありません。void
setObjectPostProcessor
(ObjectPostProcessor<ObjectSE> objectPostProcessor) 使用すべきではありません。
コンストラクターの詳細
GlobalMethodSecurityConfiguration
public GlobalMethodSecurityConfiguration()使用すべきではありません。
メソッドの詳細
methodSecurityInterceptor
@Bean public org.aopalliance.intercept.MethodInterceptor methodSecurityInterceptor(MethodSecurityMetadataSource methodSecurityMetadataSource) 使用すべきではありません。次のメソッドを使用して MethodSecurityInterceptor を構成するデフォルトの MethodInterceptor を作成します。サブクラスはこのメソッドをオーバーライドして、別の
MethodInterceptor
を提供できます。- パラメーター:
methodSecurityMetadataSource
- デフォルトのMethodSecurityMetadataSource
。- 戻り値:
MethodInterceptor
afterSingletonsInstantiated
public void afterSingletonsInstantiated()使用すべきではありません。- 次で指定:
- インターフェース
org.springframework.beans.factory.SmartInitializingSingleton
のafterSingletonsInstantiated
afterInvocationManager
使用すべきではありません。methodSecurityInterceptor(MethodSecurityMetadataSource)
のデフォルト実装にカスタムAfterInvocationManager
を提供します。事前投稿が有効になっていない場合、デフォルトは null です。それ以外の場合は、AfterInvocationProviderManager
を返します。サブクラスはこのメソッドをオーバーライドして、カスタム
AfterInvocationManager
を提供する必要があります- 戻り値:
- 使用する
AfterInvocationManager
runAsManager
使用すべきではありません。methodSecurityInterceptor(MethodSecurityMetadataSource)
のデフォルト実装にカスタムRunAsManager
を提供します。デフォルトは null です。- 戻り値:
- 使用する
RunAsManager
accessDecisionManager
使用すべきではありません。サブクラスがカスタムAccessDecisionManager
を提供できるようにします。デフォルトはAffirmativeBased
で、次の投票者がいます:- 戻り値:
- 使用する
AccessDecisionManager
createExpressionHandler
使用すべきではありません。ExpressionBasedPreInvocationAdvice
に登録されているMethodSecurityExpressionHandler
を提供します。デフォルトはDefaultMethodSecurityExpressionHandler
で、オプションでAuthenticationTrustResolver
をオートワイヤーします。サブクラスはこのメソッドをオーバーライドして、カスタム
MethodSecurityExpressionHandler
を提供できます- 戻り値:
- 使用する
MethodSecurityExpressionHandler
getExpressionHandler
使用すべきではありません。MethodSecurityExpressionHandler
を取得するか、expressionHandler
を使用して作成します。- 戻り値:
- 非
null
MethodSecurityExpressionHandler
customMethodSecurityMetadataSource
使用すべきではありません。methodSecurityMetadataSource()
に登録されているカスタムMethodSecurityMetadataSource
を提供します。デフォルトは null です。- 戻り値:
methodSecurityMetadataSource()
に登録されているカスタムMethodSecurityMetadataSource
authenticationManager
使用すべきではありません。カスタムAuthenticationManager
を提供できます。デフォルトでは、configure(AuthenticationManagerBuilder)
によって登録された認証メカニズムを使用します。configure(AuthenticationManagerBuilder)
がオーバーライドされなかった場合、AuthenticationManager
は型によってオートワイヤーされます。- 戻り値:
- 使用する
AuthenticationManager
- 例外:
ExceptionSE
configure
使用すべきではありません。サブクラスはこのメソッドをオーバーライドして、さまざまな型の認証を登録できます。オーバーライドされない場合、configure(AuthenticationManagerBuilder)
は型ごとにオートワイヤーを試みます。- パラメーター:
auth
- グローバルメソッドセキュリティのさまざまな認証メカニズムを登録するために使用されるAuthenticationManagerBuilder
- 例外:
ExceptionSE
methodSecurityMetadataSource
使用すべきではありません。使用されるデフォルトのMethodSecurityMetadataSource
を提供します。customMethodSecurityMetadataSource()
およびEnableGlobalMethodSecurity
の属性に基づいてDelegatingMethodSecurityMetadataSource
を作成します。preInvocationAuthorizationAdvice
使用すべきではありません。使用するPreInvocationAuthorizationAdvice
を作成します。デフォルトはExpressionBasedPreInvocationAdvice
です。setImportMetadata
public final void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) 使用すべきではありません。このクラスがEnableGlobalMethodSecurity
アノテーションを使用してインポートされた場合、EnableGlobalMethodSecurity
から属性を取得します。- 次で指定:
- インターフェース
org.springframework.context.annotation.ImportAware
のsetImportMetadata
setObjectPostProcessor
@Autowired(required=false) public void setObjectPostProcessor(ObjectPostProcessor<ObjectSE> objectPostProcessor) 使用すべきではありません。setMethodSecurityExpressionHandler
@Autowired(required=false) public void setMethodSecurityExpressionHandler(ListSE<MethodSecurityExpressionHandler> handlers) 使用すべきではありません。setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException 使用すべきではありません。- 次で指定:
- インターフェース
org.springframework.beans.factory.BeanFactoryAware
のsetBeanFactory
- 例外:
org.springframework.beans.BeansException
PrePostMethodSecurityConfiguration
、SecuredMethodSecurityConfiguration
、またはJsr250MethodSecurityConfiguration
を使用してください