Interface SessionManager

All Known Implementing Classes:
LifecycleAwareSessionManager, SimpleSessionManager
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SessionManager
Strategy interface that encapsulates the creation and management of Vault sessions based on VaultToken.

SessionManager is used by VaultTemplate to initiate a session. Implementing classes usually use ClientAuthentication to log into Vault and obtain tokens.

Author:
Mark Paluch
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Obtain a session token.
  • Method Details

    • getSessionToken

      VaultToken getSessionToken()
      Obtain a session token.
      Returns:
      a session token.