Interface AuthInfoStore
- All Known Implementing Classes:
SingleUserEncryptedFileBasedAuthInfoStore, SingleUserFileBasedAuthInfoStore
public interface AuthInfoStore
Defines the interface used to store and load persisted user auth tokens.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves theOneDriveAuthInfofor the given keyed identifier.voidstore(String id, OneDriveAuthInfo authInfo) Stores the givenauthInfofor the associated keyed identifier.
-
Method Details
-
store
Stores the givenauthInfofor the associated keyed identifier.- Parameters:
id- the identifier to associate the authentication information for a given user.authInfo- the authentication information- Throws:
IOException- if an error occurred while saving the authentication informationAuthInfoStoreException- See Also:
-
retrieve
Retrieves theOneDriveAuthInfofor the given keyed identifier.- Parameters:
id- the identifier associated with authentication information to fetch for- Returns:
- the authentication information
- Throws:
IOException- if an error occurred while retrieving the authentication informationAuthInfoStoreException
-