Search in sources :

Example 1 with CustomAuthRealm

use of org.apache.geode.internal.security.shiro.CustomAuthRealm in project geode by apache.

the class IntegratedSecurityService method setSecurityManager.

public void setSecurityManager(SecurityManager securityManager) {
    if (securityManager == null) {
        return;
    }
    this.securityManager = securityManager;
    Realm realm = new CustomAuthRealm(securityManager);
    DefaultSecurityManager shiroManager = new DefaultSecurityManager(realm);
    SecurityUtils.setSecurityManager(shiroManager);
    increaseShiroGlobalSessionTimeout(shiroManager);
    isIntegratedSecurity = true;
    isClientAuthenticator = false;
    isPeerAuthenticator = false;
}
Also used : CustomAuthRealm(org.apache.geode.internal.security.shiro.CustomAuthRealm) DefaultSecurityManager(org.apache.shiro.mgt.DefaultSecurityManager) Realm(org.apache.shiro.realm.Realm) CustomAuthRealm(org.apache.geode.internal.security.shiro.CustomAuthRealm)

Aggregations

CustomAuthRealm (org.apache.geode.internal.security.shiro.CustomAuthRealm)1 DefaultSecurityManager (org.apache.shiro.mgt.DefaultSecurityManager)1 Realm (org.apache.shiro.realm.Realm)1