Class TemporaryStorageBackend

java.lang.Object
com.github.philippheuer.credentialmanager.storage.TemporaryStorageBackend
All Implemented Interfaces:
IStorageBackend

public class TemporaryStorageBackend
extends java.lang.Object
implements IStorageBackend
  • Constructor Summary

    Constructors
    Constructor Description
    TemporaryStorageBackend()  
  • Method Summary

    Modifier and Type Method Description
    java.util.Optional<Credential> getCredentialByUserId​(java.lang.String userId)
    Gets a credential by user id
    java.util.List<Credential> loadCredentials()
    Load the Credentials
    void saveCredentials​(java.util.List<Credential> credentials)
    Save the Credentials

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TemporaryStorageBackend

      public TemporaryStorageBackend()
  • Method Details

    • loadCredentials

      public java.util.List<Credential> loadCredentials()
      Load the Credentials
      Specified by:
      loadCredentials in interface IStorageBackend
      Returns:
      List Credential
    • saveCredentials

      public void saveCredentials​(java.util.List<Credential> credentials)
      Save the Credentials
      Specified by:
      saveCredentials in interface IStorageBackend
      Parameters:
      credentials - List Credential
    • getCredentialByUserId

      public java.util.Optional<Credential> getCredentialByUserId​(java.lang.String userId)
      Gets a credential by user id
      Specified by:
      getCredentialByUserId in interface IStorageBackend
      Parameters:
      userId - User Id
      Returns:
      Credential