OPPSecurityPolicy
@objc
public final class OPPSecurityPolicy : NSObject
Class which is used to apply security policy mode for the set of payment methods.
-
The mode of security policy.
Declaration
Swift
@objc public private(set) var mode: OPPSecurityPolicyMode { get }
-
The list of payment brands.
Declaration
Swift
@objc public private(set) var paymentBrands: [String]? { get }
-
The flag that defines whether mode is applied to
paymentBrands
or to all tokens.Declaration
Swift
@objc public private(set) var isTokenPolicy: Bool { get }
-
Creates security policy for the list of payment methods with specified mode.
Declaration
Swift
@objc public convenience init(paymentBrands: [String], mode: OPPSecurityPolicyMode)
Parameters
paymentBrands
List of payment brands. Note that Apple Pay will be ignored, because device authentication is mandatory for this payment method.
mode
Mode of security policy which will be applied to the
paymentBrands
.Return Value
Returns an object representing OPPSecurityPolicy object.
-
Creates security policy for tokens with specified mode.
Declaration
Swift
@objc public convenience init(forTokensWith mode: OPPSecurityPolicyMode)
Parameters
mode
Mode of security policy which will be applied for all tokens.
Return Value
Returns an object representing OPPSecurityPolicy object.
-
Creates security policy for the list of payment methods with specified mode.
Declaration
Swift
@objc public static func securityPolicy(paymentBrands: [String], mode: OPPSecurityPolicyMode) -> OPPSecurityPolicy
Parameters
paymentBrands
List of payment brands. Note that Apple Pay will be ignored, because device authentication is mandatory for this payment method.
mode
Mode of security policy which will be applied to the
paymentBrands
.Return Value
Returns an object representing OPPSecurityPolicy object.
-
Creates security policy for tokens with specified mode.
Declaration
Swift
@objc public static func securityPolicyForTokensWith(mode: OPPSecurityPolicyMode) -> OPPSecurityPolicy
Parameters
mode
Mode of security policy which will be applied for all tokens.
Return Value
Returns an object representing OPPSecurityPolicy object.