TESTAuthenticationProvider
public class TESTAuthenticationProvider : AuthenticationProvider
Authentication provider for generating authentication info using a TEST registration key.
-
Initializes a TEST authentication provider with a TEST key.
Declaration
Swift
public init(name: String, key: String, keyId: String = Constants.testRegistrationKeyId, keyManager: SudoKeyManager, customAttributes: [String : Any] = [:]) throwsParameters
nameProvider name. This name will be prepend to the generated UUID in JWT sub.
keyPEM encoded RSA private key.
keyIdKey ID.
keyManagerKeyManagerinstance to use for signing authentication info.customAttributesAdditional attributes to add to the authentication information.
-
getAuthenticationInfo()AsynchronousDeclaration
Swift
public func getAuthenticationInfo() async throws -> AuthenticationInfo -
Declaration
Swift
public func reset()
TESTAuthenticationProvider Class Reference