public final class

WorkflowFactory

extends Object
java.lang.Object
   ↳ com.amazon.identity.auth.device.api.authorization.WorkflowFactory

Class Overview

Generic factory for creating Workflow objects. Use this factory if a workflow you want to use is not provided by a Login With Amazon enabled SDK.{@since 3.0 }

Summary

Public Methods
static Workflow workflowNamed(String name)
Creates a workflow for a given workflow name.
static Workflow workflowNamed(String name, JSONObject workflowData)
Creates a workflow for a given workflow name and workflow data.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Workflow workflowNamed (String name)

Creates a workflow for a given workflow name.

Parameters
name The literal string value of the workflow parameter.
Returns
  • A Workflow that represents the workflow of the given name.

public static Workflow workflowNamed (String name, JSONObject workflowData)

Creates a workflow for a given workflow name and workflow data.

Parameters
name The literal string value of the workflow parameter.
workflowData The JSON representation of additional data to be used with the named workflow.
Returns
  • A Workflow that represents the workflow of the given name and workflow data.