CLASS
ClientAuthenticationMethodJWTSymmetric
Contents
- Properties
signatureAlgorithm
secretKey
- Methods
init(signatureAlgorithm:secretKey:)
public final class ClientAuthenticationMethodJWTSymmetric: NSObject, ClientAuthenticationMethod, JWTConfiguration
The client authentication method for Symmetric JWT.
This configuration is required when configuring DCR.
Properties
signatureAlgorithm
public let signatureAlgorithm: JWTSymmetricAlgorithm
The JWT symmetric algorithm.
secretKey
public let secretKey: String
The secret key.
Methods
init(signatureAlgorithm:secretKey:)
@objc public init(signatureAlgorithm: JWTSymmetricAlgorithm, secretKey: String)
Creates a Symmetric JWT configuration.
- Parameters:
- signatureAlgorithm: The signature algorithm of the private key.
- secretKey: The private key as SecKey.
Parameters
Name | Description |
---|---|
signatureAlgorithm | The signature algorithm of the private key. |
secretKey | The private key as SecKey. |