Class AuthnState<ModelType>
java.lang.Object
com.pingidentity.sdk.api.authn.model.AuthnState<ModelType>
- Type Parameters:
ModelType- The type for the model associated with the state (or Void if no model is associated with the state).
- All Implemented Interfaces:
WithStateAttributeSupport
The API model representing the current state of a flow in the Authentication API.
- Since:
- 9.3
-
Constructor Summary
ConstructorsConstructorDescriptionAuthnState(String id, String url) Create an instance with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAction(AuthnAction action) Add an action to the available actions.voidClear the list of available actions.Get the actions available for the current state.getId()Get the ID of the flow the state belongs to.getLinks()Get the HAL links associated with the state.getModel()Get the model associated with the state, if one exists.Get the type ID for the API-capable plugin that is currently active.Get the request context containing parameters made available for authentication API responses.getState()Get the cookieless state value.Get the status for the state.getUrl()Get the absolute URL of the flow the state is associated with.voidremoveAction(String id) Remove an action from the available actions.voidSet the ID of the flow the state belongs to.voidSet the model associated with the state.voidsetPluginTypeId(String pluginTypeId) Set the type ID for the API-capable plugin that is currently active.voidsetRequestContext(RequestContext requestContext) Set the request context that is made available to authentication API responses.voidSet the cookieless state value.voidSet the status for the state.
-
Constructor Details
-
AuthnState
Create an instance with the specified parameters.- Parameters:
id- The ID of the flow the state is associated with.url- The absolute URL of the flow the state is associated with.
-
-
Method Details
-
getId
Get the ID of the flow the state belongs to. -
setId
Set the ID of the flow the state belongs to. -
getStatus
Get the status for the state. -
setStatus
Set the status for the state. -
getPluginTypeId
Get the type ID for the API-capable plugin that is currently active. -
setPluginTypeId
Set the type ID for the API-capable plugin that is currently active. -
getModel
Get the model associated with the state, if one exists. -
setModel
Set the model associated with the state. -
getActions
Get the actions available for the current state. -
addAction
Add an action to the available actions. -
removeAction
Remove an action from the available actions.- Parameters:
id- The ID of the action to remove.
-
clearActions
public void clearActions()Clear the list of available actions. -
getLinks
Get the HAL links associated with the state. These include links for each of the available actions, as well as a "self" link. -
getUrl
Get the absolute URL of the flow the state is associated with. -
getRequestContext
Get the request context containing parameters made available for authentication API responses.- Since:
- 11.0
-
setRequestContext
Set the request context that is made available to authentication API responses.- Since:
- 11.0
-
getState
Get the cookieless state value.- Specified by:
getStatein interfaceWithStateAttributeSupport- Returns:
- the cookieless state value
- Since:
- 12.1
-
setState
Set the cookieless state value.- Specified by:
setStatein interfaceWithStateAttributeSupport- Parameters:
state- the cookieless state value- Since:
- 12.1
-