CLASS
ClientAuthenticationMethodMTLS
Contents
- Methods
init(pkcs12Filename:pkcs12Passphrase:serverPEMFilename:isValidatingHostname:bundle:)
init(pkcs12Filename:pkcs12Passphrase:serverKeyPinnings:bundle:)
public final class ClientAuthenticationMethodMTLS: NSObject, ClientAuthenticationMethod
MTLS client authentication method configuration..
Methods
init(pkcs12Filename:pkcs12Passphrase:serverPEMFilename:isValidatingHostname:bundle:)
@objc public convenience init(pkcs12Filename: String,
pkcs12Passphrase: String,
serverPEMFilename: String,
isValidatingHostname: Bool,
bundle: Bundle = Bundle.main) throws
Creates a client authentication method for MTLS.
- Parameters:
- pkcs12Filename: The pkcs12 filename.
- pkcs12Passphrase: The pkcs12 passphrase.
- serverPEMFilname: The server PEM filename.
- isValidingHostname: A Bool that indicates whether the certificate of the server PEM should be restrictived against the hostname.
- bundle: The bundle where the pkcs12 file and server PEM are.
Bundle.main
is the default value
- Throws:
CryptoImportError
Parameters
Name | Description |
---|---|
pkcs12Filename | The pkcs12 filename. |
pkcs12Passphrase | The pkcs12 passphrase. |
serverPEMFilname | The server PEM filename. |
isValidingHostname | A Bool that indicates whether the certificate of the server PEM should be restrictived against the hostname. |
bundle | The bundle where the pkcs12 file and server PEM are. Bundle.main is the default value |
init(pkcs12Filename:pkcs12Passphrase:serverKeyPinnings:bundle:)
@objc public convenience init(pkcs12Filename: String,
pkcs12Passphrase: String,
serverKeyPinnings: [KeyPinning],
bundle: Bundle = Bundle.main) throws
Creates a client authentication method for MTLS.
- Parameters:
- pkcs12Filename: The pkcs12 filename.
- pkcs12Passphrase: The pkcs12 passphrase.
- serverKeyPinnings: A list of
KeyPinning
- bundle: The bundle where the pkcs12 file and server PEM are.
Bundle.main
is the default value
- Throws:
CryptoImportError
Parameters
Name | Description |
---|---|
pkcs12Filename | The pkcs12 filename. |
pkcs12Passphrase | The pkcs12 passphrase. |
serverKeyPinnings | A list of KeyPinning |
bundle | The bundle where the pkcs12 file and server PEM are. Bundle.main is the default value |