Package org.jboss.weld.security.spi
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 SecurityContext
NOOP_SECURITY_CONTEXT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
associate()
Associate this security context with the current thread.void
close()
Signals to the integrator that this instance will no longer be used by Weld.void
dissociate()
Clear the security context associated with the current thread.
-
-
-
Field Detail
-
NOOP_SECURITY_CONTEXT
static final SecurityContext NOOP_SECURITY_CONTEXT
-
-
Method Detail
-
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 interfaceAutoCloseable
-
-