Interface SecurityContext

All Superinterfaces:
AutoCloseable

public interface SecurityContext extends AutoCloseable
Encapsulation of security information that can be associated with a thread.
Since:
3.0
Author:
Jozef Hartinger
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final SecurityContext
    A trivial implementation where all operations are no-op
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Associate this security context with the current thread.
    void
    Signals to the integrator that this instance will no longer be used by Weld.
    void
    Clear the security context associated with the current thread.
  • Field Details

    • NOOP_SECURITY_CONTEXT

      static final SecurityContext NOOP_SECURITY_CONTEXT
      A trivial implementation where all operations are no-op
  • Method Details

    • associate

      void associate()
      Associate this security context with the current thread.
    • dissociate

      void dissociate()
      Clear the security context associated with the current thread.
    • close

      void close()
      Signals to the integrator that this instance will no longer be used by Weld.
      Specified by:
      close in interface AutoCloseable