Interface DittoAuthenticator
public interface DittoAuthenticator
Log in to a remote authentication service, using an
OnlineWithAuthentication or an Online identity.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic final recordstatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescription@NonNull DittoAuthenticationStatusReturns the current authentication status.voidlogin(@NonNull String token, @NonNull String provider, @NonNull DittoAuthenticator.LoginCallbackWithClientInfoJSON callback) @NonNull CompletionStage<@Nullable DittoError> loginWithCredentials(@NonNull String username, @NonNull String password, @NonNull String provider) voidloginWithCredentials(@NonNull String username, @NonNull String password, @NonNull String provider, @NonNull DittoAuthenticator.LoginCallback callback) voidlogout()voidlogout(@Nullable DittoAuthenticator.LogoutCleanup cleanup) observeStatus(@NonNull DittoAuthenticator.StatusListener listener)
-
Method Details
-
getStatus
@NonNull DittoAuthenticationStatus getStatus()Returns the current authentication status. -
login
@NonNull CompletionStage<DittoAuthenticator.LoginResult> login(@NonNull String token, @NonNull String provider) -
loginWithCredentials
@NonNull CompletionStage<@Nullable DittoError> loginWithCredentials(@NonNull String username, @NonNull String password, @NonNull String provider) -
login
void login(@NonNull String token, @NonNull String provider, @NonNull DittoAuthenticator.LoginCallbackWithClientInfoJSON callback) -
loginWithCredentials
void loginWithCredentials(@NonNull String username, @NonNull String password, @NonNull String provider, @NonNull DittoAuthenticator.LoginCallback callback) -
logout
void logout() -
logout
-
observeStatus
Flow.Publisher<DittoAuthenticationStatus> observeStatus() -
observeStatus
-