CLASS

ClientAuthenticationMethodJWTAsymmetric

Contents

swift
public final class ClientAuthenticationMethodJWTAsymmetric: NSObject, ClientAuthenticationMethod, JWTConfiguration

Properties

signatureAlgorithm

swift
public let signatureAlgorithm: JWTAsymmetricAlgorithm

The signature algorithm of the private key.

privateKey

swift
public let privateKey: SecKey

The private key as SecKey.

Methods

init(pemFilename:signatureAlgorithm:bundle:)

swift
@objc public init(pemFilename: String,
                  signatureAlgorithm: JWTAsymmetricAlgorithm,
                  bundle: Bundle = Bundle.main) throws

Creates an Asymmetric JWT configuration.

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.