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] = [:]) throws
Parameters
name
Provider name. This name will be used as the issuer of the authentication info.
key
PEM encoded RSA private key.
keyId
Key ID.
username
Username be associated with the issued authentication info.
keyManager
KeyManager
instance to use for signing authentication info.customAttributes
Additional attributes to add to the authentication information.
-
getAuthenticationInfo()
AsynchronousDeclaration
Swift
public func getAuthenticationInfo() async throws -> AuthenticationInfo
-
Declaration
Swift
public func reset()