SecureKeyFactory
Platform-agnostic factory for creating hardware-backed signing keys.
Provides a single entry point for generating keys backed by the platform's secure hardware element from shared (common) code, without needing to reference platform-specific types. The underlying implementation delegates to the appropriate platform key store:
Android:
AndroidKeyStoreSigningKeybacked by the Android Keystore (TEE or StrongBox).Apple (iOS/macOS):
AppleKeychainSigningKeybacked by the Keychain or Secure Enclave.
Platform-agnostic factory for creating hardware-backed signing keys.
Provides a single entry point for generating keys backed by the platform's secure hardware element from shared (common) code, without needing to reference platform-specific types. The underlying implementation delegates to the appropriate platform key store:
Android:
AndroidKeyStoreSigningKeybacked by the Android Keystore (TEE or StrongBox).Apple (iOS/macOS):
AppleKeychainSigningKeybacked by the Keychain or Secure Enclave.
Platform-agnostic factory for creating hardware-backed signing keys.
Provides a single entry point for generating keys backed by the platform's secure hardware element from shared (common) code, without needing to reference platform-specific types. The underlying implementation delegates to the appropriate platform key store:
Android:
AndroidKeyStoreSigningKeybacked by the Android Keystore (TEE or StrongBox).Apple (iOS/macOS):
AppleKeychainSigningKeybacked by the Keychain or Secure Enclave.
Functions
Returns a JwsProcessor backed by a hardware-bound signing key, creating the key if it does not already exist.
Returns a JwsProcessor backed by a hardware-bound signing key, creating the key if it does not already exist.
Returns a JwsProcessor backed by a hardware-bound signing key, creating the key if it does not already exist.