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 theOneDriveAuthInfo
for the given keyed identifier.void
store
(String id, OneDriveAuthInfo authInfo) Stores the givenauthInfo
for the associated keyed identifier.
-
Method Details
-
store
Stores the givenauthInfo
for 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 theOneDriveAuthInfo
for 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
-