クラス 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.MethodInterceptormethodSecurityInterceptor(MethodSecurityMetadataSource methodSecurityMetadataSource) 使用すべきではありません。次のメソッドを使用して MethodSecurityInterceptor を構成するデフォルトの MethodInterceptor を作成します。使用すべきではありません。使用されるデフォルトのMethodSecurityMetadataSourceを提供します。使用すべきではありません。使用するPreInvocationAuthorizationAdviceを作成します。protected RunAsManager使用すべきではありません。methodSecurityInterceptor(MethodSecurityMetadataSource)のデフォルト実装にカスタムRunAsManagerを提供します。voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) 使用すべきではありません。final voidsetImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) 使用すべきではありません。このクラスがEnableGlobalMethodSecurityアノテーションを使用してインポートされた場合、EnableGlobalMethodSecurityから属性を取得します。void使用すべきではありません。voidsetObjectPostProcessor(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を使用して作成します。- 戻り値:
- 非
nullMethodSecurityExpressionHandler
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を使用してください