public void beforePreInvoke(ComponentInvocationType invType, ComponentInvocation prevInv, ComponentInvocation newInv) throws InvocationException { if (invType == ComponentInvocationType.SERVLET_INVOCATION) { Object cont = newInv.getContainer(); if (cont instanceof ContainerBase) { Realm realm = ((ContainerBase) cont).getRealm(); if (realm instanceof RealmAdapter) { ((RealmAdapter) realm).preSetRunAsIdentity(newInv); } } } }
public void afterPostInvoke(ComponentInvocationType invType, ComponentInvocation prevInv, ComponentInvocation curInv) throws InvocationException { if (invType == ComponentInvocationType.SERVLET_INVOCATION) { Object cont = curInv.getContainer(); if (cont instanceof ContainerBase) { Realm realm = ((ContainerBase) cont).getRealm(); if (realm instanceof RealmAdapter) { ((RealmAdapter) realm).postSetRunAsIdentity(curInv); } } } } };
/** Provide a default in case no explicit configuration is set * * @return configured realm, or a JAAS realm by default */ public Realm getRealm() { Realm configured=super.getRealm(); // If no set realm has been called - default to JAAS // This can be overriden at engine, context and host level if( configured==null ) { configured=new JAASRealm(); this.setRealm( configured ); } return configured; }
/** Provide a default in case no explicit configuration is set * * @return configured realm, or a JAAS realm by default */ @Override public Realm getRealm() { Realm configured=super.getRealm(); // If no set realm has been called - default to JAAS // This can be overridden at engine, context and host level if( configured==null ) { configured=new JAASRealm(); this.setRealm( configured ); } return configured; }
/** Provide a default in case no explicit configuration is set * * @return configured realm, or a JAAS realm by default */ @Override public Realm getRealm() { Realm configured=super.getRealm(); // If no set realm has been called - default to JAAS // This can be overridden at engine, context and host level if( configured==null ) { configured=new JAASRealm(); this.setRealm( configured ); } return configured; }
/** Provide a default in case no explicit configuration is set * * @return configured realm, or a JAAS realm by default */ public Realm getRealm() { Realm configured=super.getRealm(); // If no set realm has been called - default to JAAS // This can be overridden at engine, context and host level if( configured==null ) { configured=new JAASRealm(); this.setRealm( configured ); } return configured; }
/** * Obtain the configured Realm and provide a default Realm implementation * when no explicit configuration is set. * * @return configured realm, or a {@link NullRealm} by default */ @Override public Realm getRealm() { Realm configured = super.getRealm(); // If no set realm has been called - default to NullRealm // This can be overridden at engine, context and host level if (configured == null) { configured = new NullRealm(); this.setRealm(configured); } return configured; }
/** * Obtain the configured Realm and provide a default Realm implementation * when no explicit configuration is set. * * @return configured realm, or a {@link NullRealm} by default */ @Override public Realm getRealm() { Realm configured = super.getRealm(); // If no set realm has been called - default to NullRealm // This can be overridden at engine, context and host level if (configured == null) { configured = new NullRealm(); this.setRealm(configured); } return configured; }
/** * Obtain the configured Realm and provide a default Realm implementation * when no explicit configuration is set. * * @return configured realm, or a {@link NullRealm} by default */ @Override public Realm getRealm() { Realm configured = super.getRealm(); // If no set realm has been called - default to NullRealm // This can be overridden at engine, context and host level if (configured == null) { configured = new NullRealm(); this.setRealm(configured); } return configured; }
/** Provide a default in case no explicit configuration is set * * @return configured realm, or a JAAS realm by default */ @Override public Realm getRealm() { Realm configured=super.getRealm(); // If no set realm has been called - default to JAAS // This can be overridden at engine, context and host level if( configured==null ) { configured=new JAASRealm(); this.setRealm( configured ); } return configured; }
/** * Obtain the configured Realm and provide a default Realm implementation * when no explicit configuration is set. * * @return configured realm, or a {@link NullRealm} by default */ @Override public Realm getRealm() { Realm configured = super.getRealm(); // If no set realm has been called - default to NullRealm // This can be overridden at engine, context and host level if (configured == null) { configured = new NullRealm(); this.setRealm(configured); } return configured; }
/** * Obtain the configured Realm and provide a default Realm implementation * when no explicit configuration is set. * * @return configured realm, or a {@link NullRealm} by default */ @Override public Realm getRealm() { Realm configured = super.getRealm(); // If no set realm has been called - default to NullRealm // This can be overridden at engine, context and host level if (configured == null) { configured = new NullRealm(); this.setRealm(configured); } return configured; }