Interface BasicSessionSecurityContext.Intercepted<A extends Authentication,B extends Identity,C extends AccessController,D extends AuthSessionData<A>>
- Type Parameters:
A
- the authentication typeB
- the identity typeC
- the access controller typeD
- the authentication session data type
- All Superinterfaces:
BasicSessionContext<D>
,BasicSessionContext.Intercepted<D>
,BasicSessionSecurityContext<A,
,B, C, D> ExchangeContext
,SecurityContext<B,
,C> SecurityContext<B,
,C> SecurityContext.Intercepted<B,
,C> SessionContext<D,
,Session<D>> SessionContext.Intercepted<D,
Session<D>>
- Enclosing interface:
BasicSessionSecurityContext<A extends Authentication,
B extends Identity, C extends AccessController, D extends AuthSessionData<A>>
An intercepted basic session security exchange context used by session and security interceptors to populate the session context and the security context.
It should only be considered when configuring basic session authentication.
- Since:
- 1.13
- Author:
- Jeremy Kuhn
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.inverno.mod.session.http.context.BasicSessionContext
BasicSessionContext.Intercepted<A>
Nested classes/interfaces inherited from interface io.inverno.mod.security.http.session.BasicSessionSecurityContext
BasicSessionSecurityContext.Intercepted<A extends Authentication,
B extends Identity, C extends AccessController, D extends AuthSessionData<A>> Nested classes/interfaces inherited from interface io.inverno.mod.security.context.SecurityContext
SecurityContext.Builder<A extends Identity,
B extends AccessController> Nested classes/interfaces inherited from interface io.inverno.mod.security.http.context.SecurityContext
SecurityContext.Intercepted<A extends Identity,
B extends AccessController> Nested classes/interfaces inherited from interface io.inverno.mod.session.http.context.SessionContext
SessionContext.Intercepted<A,
B extends Session<A>> -
Method Summary
Modifier and TypeMethodDescriptionReturns the access controller that control access to protected services and resources for the authenticated entity.default Authentication
Returns the authentication.Returns the identity of the authenticated entity.SecurityContext
<? extends B, ? extends C> Returns the underlying security context.Methods inherited from interface io.inverno.mod.http.base.ExchangeContext
init
Methods inherited from interface io.inverno.mod.security.context.SecurityContext
isAnonymous, isAuthenticated
Methods inherited from interface io.inverno.mod.security.http.context.SecurityContext.Intercepted
setSecurityContext
Methods inherited from interface io.inverno.mod.session.http.context.SessionContext
getSession, getSessionData, getSessionData, isSessionPresent
Methods inherited from interface io.inverno.mod.session.http.context.SessionContext.Intercepted
setSession, setSessionPresent
-
Method Details
-
getAuthentication
Description copied from interface:SecurityContext
Returns the authentication.
A security context always returns an authentication which can be authenticated or unauthenticated following a failed authentication or for anonymous access.
- Specified by:
getAuthentication
in interfaceSecurityContext<A extends Identity,
B extends AccessController> - Returns:
- an authentication
- See Also:
-
getIdentity
Description copied from interface:SecurityContext
Returns the identity of the authenticated entity.
The identity is always empty for an unauthenticated context and may be empty for an authenticated context when the identity of the authenticated entity is unknown.
- Specified by:
getIdentity
in interfaceSecurityContext<A extends Identity,
B extends AccessController> - Returns:
- an optional returning the identity or an empty optional
-
getAccessController
Description copied from interface:SecurityContext
Returns the access controller that control access to protected services and resources for the authenticated entity.
The access controller is always empty for an unauthenticated context and may be empty for an authenticated context when access control is unsupported or unavailable for the authenticated entity.
- Specified by:
getAccessController
in interfaceSecurityContext<A extends Identity,
B extends AccessController> - Returns:
- an optional returning the access controller or an empty optional
-
getSecurityContext
SecurityContext<? extends B,? extends C> getSecurityContext()Returns the underlying security context.
- Returns:
- a regular security context
-