Package com.pingidentity.sdk.oobauth
Class OOBAuthRequestContext
java.lang.Object
com.pingidentity.sdk.oobauth.OOBAuthRequestContext
Information about an out-of-band authentication/authorization request, which is passed to
OOBAuthPlugin.initiate(OOBAuthRequestContext, Map) to begin the transaction.- Since:
- 9.3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSome general information about the calling application or client. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the locale to use for presenting content to the user.Gets the authorization details of access requested.Gets the scope of access requested.Gets some information about the the calling application or client.Gets the attributes that identify the user (and potentially other context about the user) from whom out-of-band authentication/authorization is being requested.Gets the user authorization binding message, if one was sent by the calling application or client.voidSets the localevoidsetRequestedAuthorizationDetails(Map<AuthorizationDetail, String> requestedAuthorizationDetails) Sets the requested authorization details.voidsetRequestedScope(Map<String, String> requestedScope) Sets the requested scope.voidsetRequestingApplication(OOBAuthRequestContext.RequestingApplication requestingApplication) Sets information about the the calling application or client.voidsetUserAttributes(AttributeMap userAttributes) Sets the attributes.voidsetUserAuthBindingMessage(String userAuthBindingMessage) Sets the user authorization binding message.toString()
-
Constructor Details
-
OOBAuthRequestContext
public OOBAuthRequestContext()
-
-
Method Details
-
getUserAttributes
Gets the attributes that identify the user (and potentially other context about the user) from whom out-of-band authentication/authorization is being requested.- Returns:
- the AttributeMap with the attribute contract attributes of the given OOBAuthPlugin instance
-
setUserAttributes
Sets the attributes.- Parameters:
userAttributes- the attributes.
-
getRequestedScope
Gets the scope of access requested.- Returns:
- A Map with the requested scope. The keys of the map are scope value strings and the entries are localized human readable descriptions.
-
setRequestedScope
Sets the requested scope.- Parameters:
requestedScope- the requested scope map
-
getUserAuthBindingMessage
Gets the user authorization binding message, if one was sent by the calling application or client. The binding message is intended to be displayed on both the consumption device and the authentication device to interlock them together for the transaction by way of a visual cue for the end-user. This interlocking message enables the end-user to ensure that the action taken on the authentication device is related to the request initiated by the consumption device. The value should typically contain something that enables the end-user to reliably discern that the transaction is related across the consumption device and the authentication device, such as a random value of reasonable entropy (e.g. a transactional approval code).- Returns:
- the user authorization binding message, if sent by the calling application/client. Null otherwise.
-
setUserAuthBindingMessage
Sets the user authorization binding message.- Parameters:
userAuthBindingMessage- the message
-
getRequestingApplication
Gets some information about the the calling application or client.- Returns:
- a RequestingApplication object with some general information about the calling application or client
-
setRequestingApplication
public void setRequestingApplication(OOBAuthRequestContext.RequestingApplication requestingApplication) Sets information about the the calling application or client.- Parameters:
requestingApplication- a RequestingApplication object with some general information about the calling application or client
-
getLocale
Gets the locale to use for presenting content to the user.- Returns:
- the locale
-
setLocale
Sets the locale- Parameters:
locale- the locale
-
getRequestedAuthorizationDetails
Gets the authorization details of access requested.- Returns:
- A Map with the requested authorization details.
The keys of the map are
AuthorizationDetailand the entries are localized human readable descriptions.
-
setRequestedAuthorizationDetails
public void setRequestedAuthorizationDetails(Map<AuthorizationDetail, String> requestedAuthorizationDetails) Sets the requested authorization details.- Parameters:
requestedAuthorizationDetails- the requested authorization details map
-
toString
-