public abstract class org.apache.shiro.mgt.RealmSecurityManager extends org.apache.shiro.mgt.CachingSecurityManager
{
private java.util.Collection realms;
public void <init>()
{
org.apache.shiro.mgt.RealmSecurityManager v;
v := @this: org.apache.shiro.mgt.RealmSecurityManager;
specialinvoke v.<org.apache.shiro.mgt.CachingSecurityManager: void <init>()>();
return;
}
public void setRealm(org.apache.shiro.realm.Realm)
{
org.apache.shiro.realm.Realm v;
java.lang.IllegalArgumentException v;
java.util.ArrayList v;
org.apache.shiro.mgt.RealmSecurityManager v;
v := @this: org.apache.shiro.mgt.RealmSecurityManager;
v := @parameter: org.apache.shiro.realm.Realm;
if v != null goto label;
v = new java.lang.IllegalArgumentException;
specialinvoke v.<java.lang.IllegalArgumentException: void <init>(java.lang.String)>("Realm argument cannot be null");
throw v;
label:
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>(int)>(1);
interfaceinvoke v.<java.util.Collection: boolean add(java.lang.Object)>(v);
virtualinvoke v.<org.apache.shiro.mgt.RealmSecurityManager: void setRealms(java.util.Collection)>(v);
return;
}
public void setRealms(java.util.Collection)
{
java.util.Collection v;
java.lang.IllegalArgumentException v, v;
boolean v;
org.apache.shiro.mgt.RealmSecurityManager v;
v := @this: org.apache.shiro.mgt.RealmSecurityManager;
v := @parameter: java.util.Collection;
if v != null goto label;
v = new java.lang.IllegalArgumentException;
specialinvoke v.<java.lang.IllegalArgumentException: void <init>(java.lang.String)>("Realms collection argument cannot be null.");
throw v;
label:
v = interfaceinvoke v.<java.util.Collection: boolean isEmpty()>();
if v == 0 goto label;
v = new java.lang.IllegalArgumentException;
specialinvoke v.<java.lang.IllegalArgumentException: void <init>(java.lang.String)>("Realms collection argument cannot be empty.");
throw v;
label:
v.<org.apache.shiro.mgt.RealmSecurityManager: java.util.Collection realms> = v;
virtualinvoke v.<org.apache.shiro.mgt.RealmSecurityManager: void afterRealmsSet()>();
return;
}
protected void afterRealmsSet()
{
org.apache.shiro.mgt.RealmSecurityManager v;
v := @this: org.apache.shiro.mgt.RealmSecurityManager;
virtualinvoke v.<org.apache.shiro.mgt.RealmSecurityManager: void applyCacheManagerToRealms()>();
virtualinvoke v.<org.apache.shiro.mgt.RealmSecurityManager: void applyEventBusToRealms()>();
return;
}
public java.util.Collection getRealms()
{
java.util.Collection v;
org.apache.shiro.mgt.RealmSecurityManager v;
v := @this: org.apache.shiro.mgt.RealmSecurityManager;
v = v.<org.apache.shiro.mgt.RealmSecurityManager: java.util.Collection realms>;
return v;
}
protected void applyCacheManagerToRealms()
{
java.util.Iterator v;
java.util.Collection v;
org.apache.shiro.mgt.RealmSecurityManager v;
org.apache.shiro.cache.CacheManager v;
org.apache.shiro.realm.Realm v;
java.lang.Object v;
boolean v, v, v;
v := @this: org.apache.shiro.mgt.RealmSecurityManager;
v = virtualinvoke v.<org.apache.shiro.mgt.RealmSecurityManager: org.apache.shiro.cache.CacheManager getCacheManager()>();
v = virtualinvoke v.<org.apache.shiro.mgt.RealmSecurityManager: java.util.Collection getRealms()>();
if v == null goto label;
if v == null goto label;
v = interfaceinvoke v.<java.util.Collection: boolean isEmpty()>();
if v != 0 goto label;
v = interfaceinvoke v.<java.util.Collection: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = v instanceof org.apache.shiro.cache.CacheManagerAware;
if v == 0 goto label;
interfaceinvoke v.<org.apache.shiro.cache.CacheManagerAware: void setCacheManager(org.apache.shiro.cache.CacheManager)>(v);
goto label;
label:
return;
}
protected void applyEventBusToRealms()
{
java.util.Iterator v;
java.util.Collection v;
org.apache.shiro.mgt.RealmSecurityManager v;
org.apache.shiro.realm.Realm v;
java.lang.Object v;
org.apache.shiro.event.EventBus v;
boolean v, v, v;
v := @this: org.apache.shiro.mgt.RealmSecurityManager;
v = virtualinvoke v.<org.apache.shiro.mgt.RealmSecurityManager: org.apache.shiro.event.EventBus getEventBus()>();
v = virtualinvoke v.<org.apache.shiro.mgt.RealmSecurityManager: java.util.Collection getRealms()>();
if v == null goto label;
if v == null goto label;
v = interfaceinvoke v.<java.util.Collection: boolean isEmpty()>();
if v != 0 goto label;
v = interfaceinvoke v.<java.util.Collection: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = v instanceof org.apache.shiro.event.EventBusAware;
if v == 0 goto label;
interfaceinvoke v.<org.apache.shiro.event.EventBusAware: void setEventBus(org.apache.shiro.event.EventBus)>(v);
goto label;
label:
return;
}
protected void afterCacheManagerSet()
{
org.apache.shiro.mgt.RealmSecurityManager v;
v := @this: org.apache.shiro.mgt.RealmSecurityManager;
specialinvoke v.<org.apache.shiro.mgt.CachingSecurityManager: void afterCacheManagerSet()>();
virtualinvoke v.<org.apache.shiro.mgt.RealmSecurityManager: void applyCacheManagerToRealms()>();
return;
}
protected void afterEventBusSet()
{
org.apache.shiro.mgt.RealmSecurityManager v;
v := @this: org.apache.shiro.mgt.RealmSecurityManager;
specialinvoke v.<org.apache.shiro.mgt.CachingSecurityManager: void afterEventBusSet()>();
virtualinvoke v.<org.apache.shiro.mgt.RealmSecurityManager: void applyEventBusToRealms()>();
return;
}
public void destroy()
{
java.util.Collection v;
org.apache.shiro.mgt.RealmSecurityManager v;
v := @this: org.apache.shiro.mgt.RealmSecurityManager;
v = virtualinvoke v.<org.apache.shiro.mgt.RealmSecurityManager: java.util.Collection getRealms()>();
staticinvoke <org.apache.shiro.util.LifecycleUtils: void destroy(java.util.Collection)>(v);
v.<org.apache.shiro.mgt.RealmSecurityManager: java.util.Collection realms> = null;
specialinvoke v.<org.apache.shiro.mgt.CachingSecurityManager: void destroy()>();
return;
}
}