Module io.inverno.mod.security.http
Interface InterceptingSecurityContext<A extends Identity,B extends AccessController>
- Type Parameters:
A- the identity typeB- the access controller type
- All Superinterfaces:
io.inverno.mod.http.base.ExchangeContext,SecurityContext<A,,B> SecurityContext<A,B>
public interface InterceptingSecurityContext<A extends Identity,B extends AccessController>
An intercepting security exchange context used by security interceptors to populate the security context.
It should be only considered when configuring security interceptors and handlers which must be the only one allowed to set the security context, applicative interceptors and handlers should always
use the SecurityContext instead.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptiondefault AuthenticationSecurityContext<? extends A, ? extends B> Returns the underlying security context.voidsetSecurityContext(SecurityContext<? extends A, ? extends B> securityContext) Sets the security context in the security exchange context.Methods inherited from interface io.inverno.mod.http.base.ExchangeContext
initMethods inherited from interface io.inverno.mod.security.context.SecurityContext
isAnonymous, isAuthenticated
-
Method Details
-
setSecurityContext
Sets the security context in the security exchange context.
- Parameters:
securityContext- the security context
-
getAuthentication
- Specified by:
getAuthenticationin interfaceSecurityContext<A extends Identity,B extends AccessController>
-
getIdentity
- Specified by:
getIdentityin interfaceSecurityContext<A extends Identity,B extends AccessController>
-
getAccessController
- Specified by:
getAccessControllerin interfaceSecurityContext<A extends Identity,B extends AccessController>
-
getSecurityContext
SecurityContext<? extends A,? extends B> getSecurityContext()Returns the underlying security context.
- Returns:
- a regular security context
-