LocalAuthenticationProvider
public class LocalAuthenticationProvider : AuthenticationProvider
Authentication provider for generating authentication info using a locally stored private key.
-
Initializes a local authentication provider with a RSA private key.
Declaration
Swift
public init(name: String, key: String, keyId: String, username: String, keyManager: SudoKeyManager, customAttributes: [String : Any] = [:]) throwsParameters
nameProvider name. This name will be used as the issuer of the authentication info.
keyPEM encoded RSA private key.
keyIdKey ID.
usernameUsername be associated with the issued authentication info.
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()
LocalAuthenticationProvider Class Reference