One Logo Pool Ball
LocalAuthentication · IOS API REFERENCE

LAPrivateKey

class · iOS 16.0+ · SDK 27.1

class LAPrivateKey

Members (7)

method · iOS 16.0+

canDecrypt

TypeScript
canDecrypt(algorithm: _Security_SecKeyAlgorithm): boolean
Swift declaration
func canDecrypt(using algorithm: SecKeyAlgorithm) -> Bool
method · iOS 16.0+

canExchangeKeys

TypeScript
canExchangeKeys(algorithm: _Security_SecKeyAlgorithm): boolean
Swift declaration
func canExchangeKeys(using algorithm: SecKeyAlgorithm) -> Bool
method · iOS 16.0+

canSign

TypeScript
canSign(algorithm: _Security_SecKeyAlgorithm): boolean
Swift declaration
func canSign(using algorithm: SecKeyAlgorithm) -> Bool
method · iOS 16.0+

decrypt

TypeScript
decrypt(data: ArrayBuffer, algorithm: _Security_SecKeyAlgorithm, handler: ((arg0: (ArrayBuffer) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func decrypt(_ data: Data, algorithm: SecKeyAlgorithm) async throws -> Data
method · iOS 16.0+

exchangeKeys

TypeScript
exchangeKeys(publicKey: ArrayBuffer, algorithm: _Security_SecKeyAlgorithm, parameters: NativeMap<unknown, unknown>, handler: ((arg0: (ArrayBuffer) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func exchangeKeys(publicKey: Data, algorithm: SecKeyAlgorithm, parameters: [AnyHashable : Any]) async throws -> Data
method · iOS 16.0+

sign

TypeScript
sign(data: ArrayBuffer, algorithm: _Security_SecKeyAlgorithm, handler: ((arg0: (ArrayBuffer) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func sign(_ data: Data, algorithm: SecKeyAlgorithm) async throws -> Data
get · iOS 16.0+

publicKey

TypeScript
get publicKey(): LAPublicKey
Swift declaration
var publicKey: LAPublicKey { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

LAPrivateKey.init()

inherited init: clang: 'init' is unavailable

All LocalAuthentication types →