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 java.lang.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 Summary

    Constructors
    Constructor Description
    WeldSecurityService()  
  • Method Summary

    Modifier and Type Method Description
    void cleanup()  
    java.security.Principal getPrincipal()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.jboss.weld.security.spi.SecurityServices

    getSecurityContext, getSecurityContextAssociator
  • Constructor Details

    • WeldSecurityService

      public WeldSecurityService()
  • Method Details

    • getPrincipal

      public java.security.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