source: examples/acme_rockets_intersection/README @ b9368f3

abac0-leakabac0-meicompt_changesgec13mei-idmei-rt0-nmei_rt0mei_rt2mei_rt2_fix_1meiyap-rt1meiyap1rt2tvf-new-xml
Last change on this file since b9368f3 was 6180394, checked in by Mike Ryan <mikeryan@…>, 14 years ago

example keystore containing an intersection

  • Property mode set to 100644
File size: 1.5 KB
Line 
1This example demonstrates intersections.
2
3In order to buy rockets from Acme, you must be BOTH a preferred customer
4AND a WarnerBros character. In this example, the following query will be
5successful:
6
7    Acme.buy_rockets <-?- Coyote
8
9The following query will fail (because Batman does not have the
10attribute WarnerBros.character):
11
12    Acme.buy_rockets <-?- Batman
13
14Acme.buy_rockets <- Acme.preferred_customer & WarnerBros.character
15Acme.preferred_customer <- Coyote
16Acme.preferred_customer <- Batman
17WarnerBrothers.character <- Coyote
18
19creddy --generate --cn Acme
20
21creddy --generate --cn WarnerBros
22
23creddy --generate --cn Coyote
24
25creddy --generate --cn Batman
26
27creddy --attribute \
28       --issuer Acme_ID.pem --key Acme_private.pem --role buy_rockets \
29       --subject-cert Acme_ID.pem --subject-role preferred_customer \
30       --subject-cert WarnerBros_ID.pem --subject-role character \
31       --out Acme_buy_rockets__Acme_preferred_customer_and_WarnerBros_character_attr.der
32
33creddy --attribute \
34       --issuer Acme_ID.pem --key Acme_private.pem --role preferred_customer \
35       --subject-cert Coyote_ID.pem \
36       --out Acme_preferred_customer__Coyote_attr.der
37
38creddy --attribute \
39       --issuer Acme_ID.pem --key Acme_private.pem --role preferred_customer \
40       --subject-cert Batman_ID.pem \
41       --out Acme_preferred_customer__Batman_attr.der
42
43creddy --attribute \
44       --issuer WarnerBros_ID.pem --key WarnerBros_private.pem --role character \
45       --subject-cert Coyote_ID.pem \
46       --out WarnerBros_character__Coyote_attr.der
Note: See TracBrowser for help on using the repository browser.