UnbluAuthenticationChallengePolicy
public struct UnbluAuthenticationChallengePolicy
A policy to use for URL authentication challenges. Use this class when initializing a policy for a specific host, and pass to UnbluAuthenticationChallengeHandler
.
-
Initializes the Struct with certificate data that is used when receiving authentication challenges.
Example of initialization using:
do { let certificate = try UnbluAuthenticationChallengeCertificate(name: "certificate", extension: "cer") let policy = UnbluAuthenticationChallengePolicy(certificates: [certificate]) } catch { }
Declaration
Swift
public init(certificates: [UnbluAuthenticationChallengeCertificate])
Parameters
certificates
An Array of
UnbluAuthenticationChallengeCertificate
objects representing the certificates to check when the UnbluCoreSDK receives an authentication challenge.