Package com.pingidentity.sdk.oobauth
Class OOBAuthResultContext
java.lang.Object
com.pingidentity.sdk.oobauth.OOBAuthResultContext
Information about the state of an out-of-band authentication/authorization transaction returned from
OOBAuthPlugin.check(String, Map).- Since:
- 9.3
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the approved authorization details.Gets the approved scope as a set of scope value strings.Gets the status of the given out-of-band authentication/authorization transaction.Gets a status message, which will be propagated in the protocol response (if applicable to the outer protocol).voidsetApprovedAuthorizationDetails(AuthorizationDetails approvedAuthorizationDetails) Sets the approved authorization details.voidsetApprovedScope(Set<String> approvedScope) Sets the approved scope as a set of scope value strings.voidsetStatus(OOBAuthResultContext.Status status) Sets the status of the given out-of-band authentication/authorization transaction.voidsetStatusMessage(String statusMessage) Sets a status message, which will be propagated in the protocol response (if applicable to the outer protocol).toString()
-
Constructor Details
-
OOBAuthResultContext
public OOBAuthResultContext()
-
-
Method Details
-
getStatus
Gets the status of the given out-of-band authentication/authorization transaction.- Returns:
- the status
-
setStatus
Sets the status of the given out-of-band authentication/authorization transaction.- Parameters:
status- the status
-
getStatusMessage
Gets a status message, which will be propagated in the protocol response (if applicable to the outer protocol).- Returns:
- the message
-
setStatusMessage
Sets a status message, which will be propagated in the protocol response (if applicable to the outer protocol).- Parameters:
statusMessage- the message
-
getApprovedScope
Gets the approved scope as a set of scope value strings. If the approved scope is the same as the requested scope, this can be null.- Returns:
- the approved scope as a set of scope value strings or null if the approved scope is the same as the requested scope
-
setApprovedScope
Sets the approved scope as a set of scope value strings.- Parameters:
approvedScope- the approved scope as a set of scope value strings or null if the approved scope is the same as the requested scope
-
getApprovedAuthorizationDetails
Gets the approved authorization details. If the approved authorization details are the same as the requested authorization details, this can be null.- Returns:
- the approved authorization detail as a JSON array string or null if the approved authorization details is the same as the requested authorization details.
-
setApprovedAuthorizationDetails
Sets the approved authorization details.- Parameters:
approvedAuthorizationDetails- the approved authorization details as a JSON array string or null if the approved authorization details is the same as the requested authorization details.
-
toString
-