JsonValueOutput Class
Namespace
Usage
The action takes two input values. The first input value is the ID token or user info response from the identity provider. This input value must be a JSON object that has been serialized into a string. The second input value is the JSON key that corresponds to the attribute value that you want to retrieve. Using these input values, the action parses the ID token or user info response. It outputs the attribute value and stores it in an instance of the Auth.JsonValueOutput class. Each instance of this class stores a single attribute. The attribute is stored in a property that corresponds to its data type in the identity provider response, such as integerValue for an integer.
For more information about this action and how you can use it, see these resources in Salesforce Help.
JsonValueOutput Constructors
The following are constructors for JsonValueOutput.
JsonValueOutput(stringValue, booleanValue, integerValue, doubleValue, jsonStringValue, jsonArrayValue)
Signature
public JsonValueOutput(String stringValue, Boolean booleanValue, Integer integerValue, Double doubleValue, String jsonStringValue, String jsonArrayValue)
Parameters
- stringValue
- Type: String
- If the attribute returned by the action is a string, it's stored in this parameter.
- booleanValue
- Type: Boolean
- If the attribute returned by the action is a boolean value, it's stored in this parameter.
- integerValue
- Type: Integer
- If the attribute returned by the action is an integer value, it's stored in this parameter.
- doubleValue
- Type: Double
- If the attribute returned by the action is a Double value, it's stored in this parameter.
- jsonStringValue
- Type: String
- If the attribute returned by the action is a JSON string, it's stored in this parameter.
- jsonArrayValue
- Type: String
- If the attribute returned by the action is a JSON array, it's formatted as a string and stored in this parameter.
JsonValueOutput Properties
The following are properties for JsonValueOutput.
booleanValue
Signature
public Boolean booleanValue {get; set;}
Property Value
Type: Boolean
doubleValue
Signature
public Double doubleValue {get; set;}
Property Value
Type: Double
integerValue
Signature
public Integer integerValue {get; set;}
Property Value
Type: Integer
jsonArrayValue
Signature
public String jsonArrayValue {get; set;}
Property Value
Type: String
jsonStringValue
Signature
public String jsonStringValue {get; set;}
Property Value
Type: String
stringValue
Signature
public String stringValue {get; set;}
Property Value
Type: String