summaryrefslogtreecommitdiff
path: root/keystore2/test_utils/authorizations.rs
diff options
context:
space:
mode:
authorRajesh Nyamagoud <nyamagoud@google.com>2023-06-01 17:22:32 +0000
committerRajesh Nyamagoud <nyamagoud@google.com>2023-10-09 21:51:19 +0000
commit5f6db2f4429b482a6fdb2e336de2c0b369cef3cb (patch)
tree8549dc7d172a1699d2cc804591da016f3f1cb27d /keystore2/test_utils/authorizations.rs
parentf436a9326c19134f6f7e0a06b7221f64915a6b4b (diff)
downloadsecurity-5f6db2f4429b482a6fdb2e336de2c0b369cef3cb.tar.gz
Changes are made in keystore-client-tests to verify CREATION_DATETIME,
ATTESTATION_CHALLENGE and ATTESTATION_APPLICATION_ID. Bug: 279721870 Test: atest keystore2_client_tests Change-Id: I2bf530189e41ede27763ef696ff9a126c4110e24
Diffstat (limited to 'keystore2/test_utils/authorizations.rs')
-rw-r--r--keystore2/test_utils/authorizations.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/keystore2/test_utils/authorizations.rs b/keystore2/test_utils/authorizations.rs
index b73aab51..f50eca62 100644
--- a/keystore2/test_utils/authorizations.rs
+++ b/keystore2/test_utils/authorizations.rs
@@ -305,6 +305,15 @@ impl AuthSetBuilder {
});
self
}
+
+ /// Set creation date-time.
+ pub fn creation_date_time(mut self, date: i64) -> Self {
+ self.0.push(KeyParameter {
+ tag: Tag::CREATION_DATETIME,
+ value: KeyParameterValue::DateTime(date),
+ });
+ self
+ }
}
impl Deref for AuthSetBuilder {