Interface BasicSessionSecurityContext.Intercepted<A extends Authentication,B extends Identity,C extends AccessController,D extends AuthSessionData<A>>

Type Parameters:
A - the authentication type
B - the identity type
C - the access controller type
D - 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>>

public static interface BasicSessionSecurityContext.Intercepted<A extends Authentication,B extends Identity,C extends AccessController,D extends AuthSessionData<A>> extends BasicSessionSecurityContext<A,B,C,D>, SecurityContext.Intercepted<B,C>, BasicSessionContext.Intercepted<D>

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
  • Method Details

    • getAuthentication

      default Authentication 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 interface SecurityContext<A extends Identity,B extends AccessController>
      Returns:
      an authentication
      See Also:
    • getIdentity

      default Optional<B> 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 interface SecurityContext<A extends Identity,B extends AccessController>
      Returns:
      an optional returning the identity or an empty optional
    • getAccessController

      default Optional<C> 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 interface SecurityContext<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