PolicyAdviceCreator
public class PolicyAdviceCreator
PolicyAdviceCreator helps create a Authorization PolicyAdvice based on different response types (xml, base64XML, json) that receive from AM’s policy engine
-
Initializes PolicyAdviceCreator object
Declaration
Swift
public init()
-
Parse the advice json
Declaration
Swift
public func parseAsBase64(advice: String) -> PolicyAdvice?
Parameters
advice
The Advice in key value form
Return Value
The parsed PolicyAdvice
-
Parse the advice json
Declaration
Swift
public func parse(advice: String) -> PolicyAdvice?
Parameters
advice
The Advice in XML or base64 encoded form
Return Value
The parsed PolicyAdvice