CLASS

ClientAuthenticationMethodJWTAsymmetric

Contents

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

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.