ory-client 1.22.79

OpenAPI API client for Ory Network, Ory's web-scale API for identity and access control.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# UpdateSettingsFlowWithDeviceAuthnMethodRegister

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**attestation_ios** | Option<**String**> | The CBOR-encoded Apple App Attest attestation object for the new key. Generate the key with `DCAppAttestService.generateKey`, then obtain the attestation with `DCAppAttestService.attestKey`, passing the enrollment challenge described above as the `clientDataHash` argument — do not hash it again — and submit the result unchanged. Set exactly one of certificate_chain_android or attestation_ios. | [optional]
**certificate_chain_android** | Option<**Vec<String>**> | The Android Key Attestation certificate chain for the new key, one base64-encoded DER certificate per element, leaf first: the first element certifies the on-device key, the last is the Google attestation root.  Generate the key on-device (imported keys are rejected) in the hardware-backed keystore as an elliptic-curve (P-224, P-256, P-384, or P-521) signing key: `KeyGenParameterSpec.Builder(alias, PURPOSE_SIGN)` with `DIGEST_SHA256` and `setAttestationChallenge(challenge)`, where challenge is the enrollment challenge described above. Then submit the chain returned by `KeyStore.getCertificateChain`. Set exactly one of certificate_chain_android or attestation_ios. | [optional]
**device_name** | **String** | A human-readable name for the device, e.g. 'My work phone'. It helps the user tell this key apart from others. | 
**pin_protected** | Option<**bool**> | Set to true to enroll the key as PIN-protected. The server then mints a 32-byte pin_secret and returns it exactly once, in the settings-flow response: the `continue_with` array contains an item with action `show_pin_entry_ui` whose `data.enc` (HPKE encapsulated key) and `data.ciphertext` (sealed pin_secret) fields are base64-encoded and sealed to transport_public_key. Open them on the device with the transport private key using HPKE with DHKEM(X25519, HKDF-SHA256), HKDF-SHA256, AES-128-GCM, the ASCII info string \"ory/deviceauthn/pin-secret/v1\", and the client_key_id (its ASCII hex form) as the AAD, then bind the secret to the user's PIN locally. The sealed secret is never delivered again; logins with the key must then include a pin_proof. | [optional]
**transport_public_key** | Option<**String**> | The device's X25519 transport public key (32 bytes, base64-encoded) used to seal the returned pin_secret so only this device can open it. Required when pin_protected is true, ignored otherwise.  Generate a fresh, random X25519 key pair for each request — for example with CryptoKit's `Curve25519.KeyAgreement.PrivateKey()` on iOS or `KeyPairGenerator.getInstance(\"XDH\")` on Android — and submit the raw 32-byte public key. It is a transport-encryption key, distinct from the attested signing key. Keep the private key only until the sealed pin_secret from the response has been opened, then discard it. The HPKE suite is DHKEM(X25519, HKDF-SHA256), HKDF-SHA256, AES-128-GCM. | [optional]
**user_verification** | Option<[**models::UserVerification**](UserVerification.md)> | Declares how the key's holder is verified at use time. One of \"pin\", \"platform\", or \"none\" (or empty, which maps to \"none\"). \"pin\" is implied by pin_protected and need not be set explicitly.  For \"platform\" on Android, generate the key with `setUserAuthenticationRequired(true)`: the server rejects the claim unless the attestation shows user-authentication gating (KeyMint user_auth_type). On iOS the declaration is trusted, since App Attest cannot prove biometric gating; iOS platform keys therefore count as a sole first factor only when the project enables ios_biometric_first_factor. | [optional]
**version** | **i64** | The cryptography version to enroll the key with. Only `1` is currently supported, which corresponds to ECDSA with SHA-256 on an elliptic curve (P-224, P-256, P-384, or P-521). | 

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)