Sudo Privacy Interaction Client
Interface encapsulating a library for interacting with the Sudo Platform Privacy Interaction & Mitigation service.
Samples
import android.content.Context
import com.sudoplatform.sudoprivacyinteraction.BaseTests
import com.sudoplatform.sudoprivacyinteraction.SudoPrivacyInteractionClient
import com.sudoplatform.sudouser.SudoUserClient
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.kotlin.mock
import org.robolectric.RobolectricTestRunner
fun main() {
//sampleStart
val privacyInteractionClient =
SudoPrivacyInteractionClient
.builder()
.setContext(context)
.setSudoUserClient(sudoUserClient)
.build()
//sampleEnd
}Types
Defines the exceptions for the action based methods.
Defines the exceptions for the analysis result based methods.
Builder used to construct the SudoPrivacyInteractionClient.
Defines the exceptions for the data holder based methods.
Defines the exceptions for the virtual presence based methods.
Functions
Archive a data holder, removing it from the user's active list.
Confirm that an assisted or delegated action was completed, transitioning it to a verified completion state.
Connect a virtual presence using an authorization code obtained from an OAuth flow.
Connect a virtual presence using a pre-obtained refresh token credential.
Disconnect a virtual presence.
Retrieve a full analysis result by ID.
Retrieve a single data holder by ID.
Analyze (read-through) and return the shared, organization-generic analysis for a domain.
Retrieve the provider configurations required by consumers to support the provider OAuth flow.
Initiate an action against a data holder relationship. Delegated actions are performed on the user's behalf; assisted actions return structured materials for the client to complete.
List the persisted action history for a data holder. Returns every action that has been initiated against the data holder (all intents, all statuses, every attempt), ordered newest-first. This is the executed-action history, distinct from listAvailableActions, which returns the derived set of actions a user could take.
List analysis results associated with a virtual presence.
List the actions currently available for a data holder relationship.
List data holders associated with a virtual presence.
List scan summaries associated with a data holder, most recent first.
List all virtual presences for the signed-in user.
Validate a virtual presence's provider grant on demand and return its reconciled state. If the provider confirms the grant has been revoked (e.g. the user removed access in their provider account), the presence transitions to VirtualPresenceState.NEEDS_REAUTH; otherwise its state is returned unchanged. Use before gating access on a current VirtualPresenceState.CONNECTED state.
Rescan a virtual presence.
Set an optional callback to be invoked when an operation is attempted while the user is not signed in.
Subscribe to action status events. The subscriber is notified when an action's status changes.
Subscribe to analysis result events. The subscriber is notified when an analysis result is created or updated.
Subscribe to data holder events. The subscriber is notified with batches of data holders as they are discovered or updated during scanning.
Subscribe to virtual presence state events. The subscriber is notified when a virtual presence changes state (e.g. to NEEDS_REAUTH or SCANNING).
Unarchive a previously archived data holder, returning it to the DataHolderProtectionState.MONITORED state. Only a data holder in the DataHolderProtectionState.ARCHIVED state may be unarchived.
Unsubscribe all subscribers from action status events.
Unsubscribe all subscribers from analysis result events.
Unsubscribe all subscribers from data holder events.
Unsubscribe all subscribers from virtual presence state events.
Unsubscribe the specified subscriber from action status events.
Unsubscribe the specified subscriber from analysis result events.
Unsubscribe the specified subscriber from data holder events.
Unsubscribe the specified subscriber from virtual presence state events.