Class ShiroComponentProducer

java.lang.Object
org.apache.shiro.cdi.ShiroComponentProducer

@Dependent public class ShiroComponentProducer extends Object
Exposes Shiro's SecurityManager, Session and Subject via CDI @Inject
  • Constructor Details

  • Method Details

    • getSecurityManager

      @Produces public static org.apache.shiro.mgt.SecurityManager getSecurityManager()
    • getSubject

      @Produces @RequestScoped public static org.apache.shiro.subject.Subject getSubject()
    • getSession

      @Produces @RequestScoped public static org.apache.shiro.session.Session getSession()
    • getSessionNoCreation

      @Produces @NoSessionCreation @RequestScoped public static org.apache.shiro.session.Session getSessionNoCreation()
    • getPrincipal

      @Produces @Principal public static <T> Supplier<T> getPrincipal(javax.enterprise.inject.spi.InjectionPoint injectionPoint)