/** * First calls <code>super.afterRealmsSet()</code> and then sets these same <code>Realm</code> objects on this * instance's wrapped {@link Authorizer Authorizer}. * <p/> * The setting of realms the Authorizer will only occur if it is an instance of * {@link org.apache.shiro.authz.ModularRealmAuthorizer ModularRealmAuthorizer}, that is: * <pre> * if ( this.authorizer instanceof ModularRealmAuthorizer ) { * ((ModularRealmAuthorizer)this.authorizer).setRealms(realms); * }</pre> */ protected void afterRealmsSet() { super.afterRealmsSet(); if (this.authorizer instanceof ModularRealmAuthorizer) { ((ModularRealmAuthorizer) this.authorizer).setRealms(getRealms()); } }
public void destroy() { LifecycleUtils.destroy(getAuthorizer()); this.authorizer = null; super.destroy(); }
public void destroy() { LifecycleUtils.destroy(getAuthenticator()); this.authenticator = null; super.destroy(); } }
/** * Passes on the {@link #getRealms() realms} to the internal delegate <code>Authenticator</code> instance so * that it may use them during authentication attempts. */ protected void afterRealmsSet() { super.afterRealmsSet(); if (this.authenticator instanceof ModularRealmAuthenticator) { ((ModularRealmAuthenticator) this.authenticator).setRealms(getRealms()); } }
/** * Passes on the {@link #getRealms() realms} to the internal delegate <code>Authenticator</code> instance so * that it may use them during authentication attempts. */ protected void afterRealmsSet() { super.afterRealmsSet(); if (this.authenticator instanceof ModularRealmAuthenticator) { ((ModularRealmAuthenticator) this.authenticator).setRealms(getRealms()); } }
public void destroy() { LifecycleUtils.destroy(getAuthorizer()); this.authorizer = null; super.destroy(); }
/** * Passes on the {@link #getRealms() realms} to the internal delegate <code>Authenticator</code> instance so * that it may use them during authentication attempts. */ protected void afterRealmsSet() { super.afterRealmsSet(); if (this.authenticator instanceof ModularRealmAuthenticator) { ((ModularRealmAuthenticator) this.authenticator).setRealms(getRealms()); } }
public void destroy() { LifecycleUtils.destroy(getAuthenticator()); this.authenticator = null; super.destroy(); } }
/** * First calls <code>super.afterRealmsSet()</code> and then sets these same <code>Realm</code> objects on this * instance's wrapped {@link Authorizer Authorizer}. * <p/> * The setting of realms the Authorizer will only occur if it is an instance of * {@link org.apache.shiro.authz.ModularRealmAuthorizer ModularRealmAuthorizer}, that is: * <pre> * if ( this.authorizer instanceof ModularRealmAuthorizer ) { * ((ModularRealmAuthorizer)this.authorizer).setRealms(realms); * }</pre> */ protected void afterRealmsSet() { super.afterRealmsSet(); if (this.authorizer instanceof ModularRealmAuthorizer) { ((ModularRealmAuthorizer) this.authorizer).setRealms(getRealms()); } }
public void destroy() { LifecycleUtils.destroy(getAuthorizer()); this.authorizer = null; super.destroy(); }
public void destroy() { LifecycleUtils.destroy(getAuthenticator()); this.authenticator = null; super.destroy(); } }
/** * First calls <code>super.afterRealmsSet()</code> and then sets these same <code>Realm</code> objects on this * instance's wrapped {@link Authorizer Authorizer}. * <p/> * The setting of realms the Authorizer will only occur if it is an instance of * {@link org.apache.shiro.authz.ModularRealmAuthorizer ModularRealmAuthorizer}, that is: * <pre> * if ( this.authorizer instanceof ModularRealmAuthorizer ) { * ((ModularRealmAuthorizer)this.authorizer).setRealms(realms); * }</pre> */ protected void afterRealmsSet() { super.afterRealmsSet(); if (this.authorizer instanceof ModularRealmAuthorizer) { ((ModularRealmAuthorizer) this.authorizer).setRealms(getRealms()); } }