Class WeldSecurityService

java.lang.Object
cloud.piranha.cdi.weld.WeldSecurityService
All Implemented Interfaces:
org.jboss.weld.bootstrap.api.Service, org.jboss.weld.security.spi.SecurityServices

public class WeldSecurityService extends Object implements org.jboss.weld.security.spi.SecurityServices
The implementation of this Weld SPI provides the current principal for injection by CDI.

Implementation detail: In Weld 3.1.* org.jboss.weld.bean.builtin.ee.PrincipalBean calls this.

Author:
Arjan Tijms
  • Constructor Details

    • WeldSecurityService

      public WeldSecurityService()
  • Method Details

    • getPrincipal

      public Principal getPrincipal()
      Specified by:
      getPrincipal in interface org.jboss.weld.security.spi.SecurityServices
    • cleanup

      public void cleanup()
      Specified by:
      cleanup in interface org.jboss.weld.bootstrap.api.Service