Package ch.bztf.m226blb1.Auth
Class AuthService
java.lang.Object
ch.bztf.m226blb1.Auth.AuthService
The service for the authentication related tasks.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAccount(@NonNull AuthAccount authAccount) Creates a newaccountwith an API-Key for the given Instagram email and password.booleandeleteAccount(@NotBlank String apiKey) Deletes anaccountwith the given API-Key.regenerateAPIKey(@NonNull AuthAccount authAccount) Regenerates the API-Key for the givenaccount.
-
Constructor Details
-
AuthService
public AuthService()
-
-
Method Details
-
createAccount
Creates a newaccountwith an API-Key for the given Instagram email and password.- Parameters:
authAccount- authentication account with the Instagramemailandpassword- Returns:
- a
ResponseHandlerfor the API-key - See Also:
-
regenerateAPIKey
Regenerates the API-Key for the givenaccount.- Parameters:
authAccount- theaccountfor which to generate a new API-Key- Returns:
- a
ResponseHandlerfor the new API-Key of the given account - See Also:
-
deleteAccount
Deletes anaccountwith the given API-Key.- Parameters:
apiKey- the API-key of the account to be delete- Returns:
- true if the account was deleted, false otherwise
-