Class 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 Detail

      • WeldSecurityService

        public WeldSecurityService()
    • Method Detail

      • 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