pub struct GoogleFirebaseAppcheckV1betaDeviceCheckConfig {
pub key_id: Option<String>,
pub name: Option<String>,
pub private_key: Option<String>,
pub private_key_set: Option<bool>,
pub token_ttl: Option<Duration>,
}Expand description
An app’s DeviceCheck configuration object. This configuration is used by ExchangeDeviceCheckToken to validate device tokens issued to apps by DeviceCheck. It also controls certain properties of the returned AppCheckToken, such as its ttl. Note that the Team ID registered with your app is used as part of the validation process. Please register it via the Firebase Console or programmatically via the Firebase Management Service.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- apps device check config get projects (response)
- apps device check config patch projects (request|response)
Fields§
§key_id: Option<String>Required. The key identifier of a private key enabled with DeviceCheck, created in your Apple Developer account.
name: Option<String>Required. The relative resource name of the DeviceCheck configuration object, in the format: projects/{project_number}/apps/{app_id}/deviceCheckConfig
private_key: Option<String>Required. Input only. The contents of the private key (.p8) file associated with the key specified by key_id. For security reasons, this field will never be populated in any response.
private_key_set: Option<bool>Output only. Whether the private_key field was previously set. Since we will never return the private_key field, this field is the only way to find out whether it was previously set.
token_ttl: Option<Duration>Specifies the duration for which App Check tokens exchanged from DeviceCheck tokens will be valid. If unset, a default value of 1 hour is assumed. Must be between 30 minutes and 7 days, inclusive.
Trait Implementations§
Source§impl Clone for GoogleFirebaseAppcheckV1betaDeviceCheckConfig
impl Clone for GoogleFirebaseAppcheckV1betaDeviceCheckConfig
Source§fn clone(&self) -> GoogleFirebaseAppcheckV1betaDeviceCheckConfig
fn clone(&self) -> GoogleFirebaseAppcheckV1betaDeviceCheckConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more