@Configuration @Conditional(value=ApacheShiroSecurityConfiguration.ApacheShiroPresentCondition.class) public class ApacheShiroSecurityConfiguration extends AbstractAnnotationConfigSupport
ApacheShiroSecurityConfiguration クラスは、Apache Geode の管理およびデータアクセス操作を保護するために、Apache Shiro セキュリティフレームワークの構成と初期化を担当する Spring @Configuration コンポーネントです。GemFireCache、SecurityService、DefaultSecurityManager、Realm、LifecycleBeanPostProcessor, BeanFactory, ListableBeanFactory, Bean, Condition, Conditional, Configuration, AnnotationMetadata, ApacheShiroSecurityConfiguration.ApacheShiroPresentCondition, AbstractAnnotationConfigSupport| 修飾子と型 | クラスと説明 |
|---|---|
static class | ApacheShiroSecurityConfiguration.ApacheShiroPresentCondition ユーザーがアプリケーションのクラスパスに "shiro-spring" 依存関係を含めた(宣言した)かどうかを判断するための Spring Condition。これは、Spring コンテキストで Apache Geode を保護するために Apache Shiro を構成するために必要です。 |
AbstractAnnotationConfigSupport.TypeResolver<T>INFRASTRUCTURE_ROLES, ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE, ORG_SPRINGFRAMEWORK_PACKAGE, SPRING_DATA_GEMFIRE_PROPERTY_PREFIX| コンストラクターと説明 |
|---|
ApacheShiroSecurityConfiguration() |
| 修飾子と型 | メソッドと説明 |
|---|---|
protected ClassSE<? extends AnnotationSE> | getAnnotationType() |
protected ListableBeanFactory | getListableBeanFactory()Spring BeanFactory への参照を返します。 |
protected org.apache.shiro.mgt.SecurityManager | registerSecurityManager(org.apache.shiro.mgt.SecurityManager securityManager) 指定された Apache Shiro SecurityManager を Apache Shiro セキュリティフレームワークに登録します。 |
protected ListSE<org.apache.shiro.realm.Realm> | resolveRealms()Spring ApplicationContext で Spring 管理 Bean として宣言および構成されたすべての Apache Shiro Realms を解決します。 |
void | setBeanFactory(BeanFactory beanFactory)Spring BeanFactory への参照を設定します。 |
BeanFactoryPostProcessor | shiroGemFireBeanFactoryPostProcessor() |
BeanPostProcessor | shiroLifecycleBeanPostProcessor()Bean 定義は、Spring コンテナーの初期化および破棄フェーズ中に Shiro セキュリティコンポーネントのライフサイクルコールバックメソッドを自動的に呼び出すために、Apache Shiro Spring LifecycleBeanPostProcessor を定義、構成、登録します。 |
org.apache.shiro.mgt.SecurityManager | shiroSecurityManager()Apache Geode を保護するために Apache Shiro SecurityManager 実装を定義、構成、登録するための Bean 定義。 |
arrayOfPropertyNamesFor, arrayOfPropertyNamesFor, asArrayProperty, cacheClientProperty, cacheCompressionProperty, cacheOffHeapProperty, cachePeerProperty, cacheProperty, cacheServerProperty, clusterProperty, diskStoreProperty, entitiesProperty, gatewayReceiverProperty, gatewaySenderProperty, getAnnotationAttributes, getAnnotationAttributes, getAnnotationAttributes, getAnnotationTypeName, getAnnotationTypeSimpleName, getBeanClassLoader, getBeanFactory, getEnvironment, getEvaluationContext, getLog, hasValue, hasValue, hasValue, httpServiceProperty, isAnnotationPresent, isAnnotationPresent, isNotInfrastructureBean, isNotInfrastructureBean, isNotInfrastructureClass, isNotInfrastructureClass, isNotInfrastructureRole, isUserLevelMethod, locatorProperty, logDebug, logDebug, logError, logError, loggingProperty, logInfo, logInfo, logWarning, logWarning, managementProperty, managerProperty, memcachedServiceProperty, namedCacheServerProperty, namedDiskStoreProperty, namedGatewaySenderProperty, namedPoolProperty, newEvaluationContext, newLog, pdxProperty, poolProperty, propertyName, redisServiceProperty, register, register, requireProperty, resolveAnnotation, resolveBeanClass, resolveBeanClass, resolveBeanClass, resolveBeanClassLoader, resolveBeanClassLoader, resolveBeanClassName, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, safeResolveType, securityProperty, serviceProperty, setBeanClassLoader, setEnvironment, sslProperty, statsPropertycloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEprotected ClassSE<? extends AnnotationSE> getAnnotationType()
AbstractAnnotationConfigSupport の getAnnotationType EnableSecurity、AnnotationSE、ClassSE 型。EnableSecuritypublic void setBeanFactory(BeanFactory beanFactory) throws BeansException
BeanFactory への参照を設定します。BeanFactoryAware 内の setBeanFactory AbstractAnnotationConfigSupport の setBeanFactory beanFactory - Spring BeanFactory への参照。IllegalArgumentExceptionSE - Spring BeanFactory が ListableBeanFactory のインスタンスでない場合。BeansExceptionBeanFactoryprotected ListableBeanFactory getListableBeanFactory()
BeanFactory への参照を返します。BeanFactory への参照。IllegalStateExceptionSE - Spring BeanFactory が設定されていない場合。BeanFactory@Bean public BeanFactoryPostProcessor shiroGemFireBeanFactoryPostProcessor()
@Bean public BeanPostProcessor shiroLifecycleBeanPostProcessor()
Bean 定義は、Spring コンテナーの初期化および破棄フェーズ中に Shiro セキュリティコンポーネントのライフサイクルコールバックメソッドを自動的に呼び出すために、Apache Shiro Spring LifecycleBeanPostProcessor を定義、構成、登録します。LifecycleBeanPostProcessor のインスタンス。LifecycleBeanPostProcessor@Bean public org.apache.shiro.mgt.SecurityManager shiroSecurityManager()
Bean 定義は、Apache Geode を保護するために Apache Shiro SecurityManager 実装を定義、構成、登録します。この Bean 定義の登録は、ユーザーが Apache Geode を保護するために Apache Shiro を使用しているかどうかによって決まります。これは、Spring ApplicationContext で宣言された Apache Shiro Realms の存在によって決まります。この Bean 定義は、Apache Geode キャッシュが最初に作成され、初期化されるように、Apache Geode GemFireCache インスタンスへの依存関係を宣言します。これにより、SDG が Apache Shiro を Apache Geode のセキュリティプロバイダーとして構成する前に、内部の Apache Geode セキュリティ構成ロジックが評価され、処理されます。さらに、この Bean 定義は、Apache Shiro SecurityManager を Apache Shiro セキュリティフレームワークに登録します。最後に、このメソッドは Apache Geode セキュリティを有効にします。SecurityManager 実装。IllegalStateExceptionSE - Apache Shiro SecurityManager が Apache Shiro セキュリティフレームワークに登録されているが、Apache Geode セキュリティを有効にできなかった場合。SecurityManager, registerSecurityManager(org.apache.shiro.mgt.SecurityManager), resolveRealms()protected ListSE<org.apache.shiro.realm.Realm> resolveRealms()
ApplicationContext で Spring 管理対象 Bean として宣言および構成されたすべての Apache Shiro Realms を解決します。このメソッドは、優先順位に従ってレルムを順序付けし、宣言 / 構成されたとおりに Apache Shiro レルムが正しい順序で適用されるようにします。ApplicationContext で Spring 管理 Bean として宣言および構成されたすべての Apache Shiro Realms の ListSE。ListableBeanFactory.getBeansOfType(Class, boolean, boolean), OrderComparator, Realmprotected org.apache.shiro.mgt.SecurityManager registerSecurityManager(org.apache.shiro.mgt.SecurityManager securityManager)
SecurityManager を Apache Shiro セキュリティフレームワークに登録します。securityManager - 登録するには SecurityManager へ。SecurityManager 参照。IllegalArgumentExceptionSE - SecurityManager が null の場合。SecurityUtils.setSecurityManager(org.apache.shiro.mgt.SecurityManager), SecurityManagerCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.