CLASS
ClientAuthenticationMethodJWTAsymmetric
Contents
- Properties
signatureAlgorithmprivateKey
- Methods
init(pemFilename:signatureAlgorithm:bundle:)
public final class ClientAuthenticationMethodJWTAsymmetric: NSObject, ClientAuthenticationMethod, JWTConfiguration
Properties
signatureAlgorithm
public let signatureAlgorithm: JWTAsymmetricAlgorithm
The signature algorithm of the private key.
privateKey
public let privateKey: SecKey
The private key as SecKey.
Methods
init(pemFilename:signatureAlgorithm:bundle:)
@objc public init(pemFilename: String,
signatureAlgorithm: JWTAsymmetricAlgorithm,
bundle: Bundle = Bundle.main) throws
Creates an Asymmetric JWT configuration.
- Parameters:
- pemFilename: The PEM filename that contains the private key.
- signatureAlgorithm: The signature algorithm of the private key.
- bundle: The bundle that holds the PEM file.
Bundle.mainis the default value.
Parameters
| Name | Description |
|---|---|
| pemFilename | The PEM filename that contains the private key. |
| signatureAlgorithm | The signature algorithm of the private key. |
| bundle | The bundle that holds the PEM file. Bundle.main is the default value. |