Package com.mwdle.bitwarden.cli
Class SessionManager
java.lang.Object
com.mwdle.bitwarden.cli.SessionManager
A singleton that caches a Bitwarden CLI session key to prevent API rate-limiting and improve performance.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SessionManagervoidInvalidates the current Bitwarden CLI session.boolean
-
Method Details
-
getInstance
- Returns:
- The singleton instance of this manager.
-
isSessionValid
public boolean isSessionValid()- Returns:
trueif the Bitwarden session key is present.
-
invalidateSession
public void invalidateSession()Invalidates the current Bitwarden CLI session. -
getSessionKey
- Returns:
- a Bitwarden CLI session key
- Throws:
InterruptedException- if the Bitwarden CLI command is interruptedIOException- if the login/unlock process fails
-