forked from zhehaowang/android-identity-manager
-
Notifications
You must be signed in to change notification settings - Fork 2
/
example-trust-schema.conf
48 lines (48 loc) · 936 Bytes
/
example-trust-schema.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
anchor {
name (<org><openmhealth>)<><KEY>
raw ...
}
rule {
id certs
for data
filter {
type name
regex ^<org><openmhealth>[^<KEY>]*<KEY><><ID-CERT>$
}
checker {
type customized
sig-type rsa-sha256
key-locator {
type name
hyper-relation {
k-regex ^<org><openmhealth>([^<KEY>]*)<KEY><><ID-CERT>$
k-expand \\1\\2
h-relation is-prefix-of
p-regex ^<org><openmhealth>([^<KEY>]*)<KEY><><ID-CERT>$
p-expand \\1\\2
}
}
}
}
rule {
id health_data
for data
filter {
type name
regex ^<org><openmhealth><><data><>*$
}
checker {
type customized
sig-type rsa-sha256
key-locator {
type name
hyper-relation {
k-regex ^<org><openmhealth>(<>)<><ndnfit><KEY><><ID-CERT><>*$
k-expand \\1
h-relation equal
p-regex ^<org><openmhealth>(<>)<data><>*$
p-expand \\1
}
}
}
}