com.holonplatform.auth

## Interface AuthContext.AuthenticationHolder

- Enclosing interface:
    AuthContext

      public static interface AuthContext.AuthenticationHolder

  Auth context `Authentication` holder, which handles the current `Authentication` reference on behalf of the Auth context.
  Since:
    5.1.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Optional<Authentication>` | `getAuthentication()` Get the current `Authentication`.
    `void` | `setAuthentication(Authentication authentication)` Set the current `Authentication`.

- - ### Method Detail

    - #### getAuthentication

          Optional<Authentication> getAuthentication()

      Get the current `Authentication`.
      Returns:
        Optional `Authentication`, empty if not present

    - #### setAuthentication

          void setAuthentication(Authentication authentication)

      Set the current `Authentication`.
      Parameters:
        `authentication` - The authentication to set (may be null)

Copyright © 2019 The Holon Platform. All rights reserved.