Changes between Version 10 and Version 11 of CredPrinterDocs


Ignore:
Timestamp:
May 21, 2013 10:57:46 AM (8 years ago)
Author:
faber
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CredPrinterDocs

    v10 v11  
    7777}}}
    7878
    79 and run the client with the contents of the [source:examples/experiment_create examples/experiment_create directory] from the [http://abac.deterlab.net/src/abac-0.1.3.tgz abac distribution].  Assuming that that directory is {{{examples/experiment_create}}}:
    80 
    81 {{{
    82 $ cred_client.py examples/experiment_create/*
     79Download the attached example credential directory, and untar it somewhere convenient:
     80
     81{{{
     82$ tar xvzf experiment_create.tgz
     83x experiment_create/
     84x experiment_create/Acme_ID.pem
     85x experiment_create/Acme_experiment_create__Acme_partner_experiment_create_attr.xml
     86x experiment_create/Acme_partner__Globotron_attr.xml
     87x experiment_create/Acme_private.pem
     88x experiment_create/Alice_ID.pem
     89x experiment_create/Alice_admin__Bob_attr.xml
     90x experiment_create/Alice_private.pem
     91x experiment_create/Bob_ID.pem
     92x experiment_create/Bob_private.pem
     93x experiment_create/Globotron_ID.pem
     94x experiment_create/Globotron_admin__Alice_attr.xml
     95x experiment_create/Globotron_experiment_create__Globotron_admin_power_user_attr.xml
     96x experiment_create/Globotron_private.pem
     97
     98}}}
     99
     100and run the client with the contents of the experiment_create directory.
     101
     102{{{
     103$ cred_client.py experiment_create/*
    83104}}}
    84105
     
    86107
    87108{{{
    88 000: identity 9b47d3669b99a4ce1d3a0055be002ea6a580041a Acme
    89 001: attribute 9b47d3669b99a4ce1d3a0055be002ea6a580041a.experiment_create <- 9b47d3669b99a4ce1d3a0055be002ea6a580041a.partner.experiment_create Acme.experiment_create <- Acme.partner.experiment_create
    90 002: attribute 9b47d3669b99a4ce1d3a0055be002ea6a580041a.partner <- f923e9f69d33b52d8bbdfd19f2ec89dde7beedd7 Acme.partner <- Globotron
     109000: identity 85613e9e0e09ce3e05a8d4ef38a4b82daf14fa58 Acme
     110001: attribute 85613e9e0e09ce3e05a8d4ef38a4b82daf14fa58.experiment_create <- 85613e9e0e09ce3e05a8d4ef38a4b82daf14fa58.partner.experiment_create Acme.experiment_create <- Acme.partner.experiment_create
     111002: attribute 85613e9e0e09ce3e05a8d4ef38a4b82daf14fa58.partner <- 7c49310d78f138cb0d1f2fcdab863b9e30dab426 Acme.partner <- Globotron
    91112003: Error, code -1
    92 004: identity 001f3599bafb755e97855b9ee0b3487830a4ecc7 Alice
    93 005: attribute 001f3599bafb755e97855b9ee0b3487830a4ecc7.power_user <- b9cdabc274fa38390c26829efed68eaa527b8d00 Alice.power_user <- Bob
     113004: identity 85818428a71f18f8eb1e0d52f427a75101a912d6 Alice
     114005: attribute 85818428a71f18f8eb1e0d52f427a75101a912d6.power_user <- c5ca272947b3d7664c4e6e1db734dfab0291eba4 Alice.power_user <- Bob
    94115006: Error, code -1
    95 007: identity b9cdabc274fa38390c26829efed68eaa527b8d00 Bob
     116007: identity c5ca272947b3d7664c4e6e1db734dfab0291eba4 Bob
    96117008: Error, code -1
    97 009: identity f923e9f69d33b52d8bbdfd19f2ec89dde7beedd7 Globotron
    98 010: attribute f923e9f69d33b52d8bbdfd19f2ec89dde7beedd7.admin <- 001f3599bafb755e97855b9ee0b3487830a4ecc7 Globotron.admin <- Alice
    99 011: attribute f923e9f69d33b52d8bbdfd19f2ec89dde7beedd7.experiment_create <- f923e9f69d33b52d8bbdfd19f2ec89dde7beedd7.admin.power_user Globotron.experiment_create <- Globotron.admin.power_user
     118009: identity 7c49310d78f138cb0d1f2fcdab863b9e30dab426 Globotron
     119010: attribute 7c49310d78f138cb0d1f2fcdab863b9e30dab426.admin <- 85818428a71f18f8eb1e0d52f427a75101a912d6 Globotron.admin <- Alice
     120011: attribute 7c49310d78f138cb0d1f2fcdab863b9e30dab426.experiment_create <- 7c49310d78f138cb0d1f2fcdab863b9e30dab426.admin.power_user Globotron.experiment_create <- Globotron.admin.power_user
    100121012: Error, code -1
    101 013: Error, code -1
    102122}}}
    103123
     
    109129
    110130More verbose output that breaks down the contents of the credentials in detail is generated by using {{{--verbose}}}:
    111 {{{
    112 $ cred_client.py --verbose examples/experiment_create/*
    113 }}}
    114131
    115132produces:
    116133{{{
    117 000: identity 9b47d3669b99a4ce1d3a0055be002ea6a580041a Acme
    118 001: attribute 9b47d3669b99a4ce1d3a0055be002ea6a580041a.experiment_create <- 9b47d3669b99a4ce1d3a0055be002ea6a580041a.partner.experiment_create Acme.experiment_create <- Acme.partner.experiment_create
     134000: identity 85613e9e0e09ce3e05a8d4ef38a4b82daf14fa58 Acme
     135001: attribute 85613e9e0e09ce3e05a8d4ef38a4b82daf14fa58.experiment_create <- 85613e9e0e09ce3e05a8d4ef38a4b82daf14fa58.partner.experiment_create Acme.experiment_create <- Acme.partner.experiment_create
    119136        head:
    120137                pretty_principal: Acme
    121                 principal: 9b47d3669b99a4ce1d3a0055be002ea6a580041a
     138                principal: 85613e9e0e09ce3e05a8d4ef38a4b82daf14fa58
    122139                role: experiment_create
    123140        tail:
    124141                pretty_principal: Acme
    125                 principal: 9b47d3669b99a4ce1d3a0055be002ea6a580041a
     142                principal: 85613e9e0e09ce3e05a8d4ef38a4b82daf14fa58
    126143                role: experiment_create
    127                 linked_role: 9b47d3669b99a4ce1d3a0055be002ea6a580041a.partner
    128 002: attribute 9b47d3669b99a4ce1d3a0055be002ea6a580041a.partner <- f923e9f69d33b52d8bbdfd19f2ec89dde7beedd7 Acme.partner <- Globotron
     144                linked_role: 85613e9e0e09ce3e05a8d4ef38a4b82daf14fa58.partner
     145002: attribute 85613e9e0e09ce3e05a8d4ef38a4b82daf14fa58.partner <- 7c49310d78f138cb0d1f2fcdab863b9e30dab426 Acme.partner <- Globotron
    129146        head:
    130147                pretty_principal: Acme
    131                 principal: 9b47d3669b99a4ce1d3a0055be002ea6a580041a
     148                principal: 85613e9e0e09ce3e05a8d4ef38a4b82daf14fa58
    132149                role: partner
    133150        tail:
    134151                pretty_principal: Globotron
    135                 principal: f923e9f69d33b52d8bbdfd19f2ec89dde7beedd7
     152                principal: 7c49310d78f138cb0d1f2fcdab863b9e30dab426
    136153003: Error, code -1
    137 004: identity 001f3599bafb755e97855b9ee0b3487830a4ecc7 Alice
    138 005: attribute 001f3599bafb755e97855b9ee0b3487830a4ecc7.power_user <- b9cdabc274fa38390c26829efed68eaa527b8d00 Alice.power_user <- Bob
     154004: identity 85818428a71f18f8eb1e0d52f427a75101a912d6 Alice
     155005: attribute 85818428a71f18f8eb1e0d52f427a75101a912d6.power_user <- c5ca272947b3d7664c4e6e1db734dfab0291eba4 Alice.power_user <- Bob
    139156        head:
    140157                pretty_principal: Alice
    141                 principal: 001f3599bafb755e97855b9ee0b3487830a4ecc7
     158                principal: 85818428a71f18f8eb1e0d52f427a75101a912d6
    142159                role: power_user
    143160        tail:
    144161                pretty_principal: Bob
    145                 principal: b9cdabc274fa38390c26829efed68eaa527b8d00
     162                principal: c5ca272947b3d7664c4e6e1db734dfab0291eba4
    146163006: Error, code -1
    147 007: identity b9cdabc274fa38390c26829efed68eaa527b8d00 Bob
     164007: identity c5ca272947b3d7664c4e6e1db734dfab0291eba4 Bob
    148165008: Error, code -1
    149 009: identity f923e9f69d33b52d8bbdfd19f2ec89dde7beedd7 Globotron
    150 010: attribute f923e9f69d33b52d8bbdfd19f2ec89dde7beedd7.admin <- 001f3599bafb755e97855b9ee0b3487830a4ecc7 Globotron.admin <- Alice
    151         head:
    152                 pretty_principal: Globotron
    153                 principal: f923e9f69d33b52d8bbdfd19f2ec89dde7beedd7
     166009: identity 7c49310d78f138cb0d1f2fcdab863b9e30dab426 Globotron
     167010: attribute 7c49310d78f138cb0d1f2fcdab863b9e30dab426.admin <- 85818428a71f18f8eb1e0d52f427a75101a912d6 Globotron.admin <- Alice
     168        head:
     169                pretty_principal: Globotron
     170                principal: 7c49310d78f138cb0d1f2fcdab863b9e30dab426
    154171                role: admin
    155172        tail:
    156173                pretty_principal: Alice
    157                 principal: 001f3599bafb755e97855b9ee0b3487830a4ecc7
    158 011: attribute f923e9f69d33b52d8bbdfd19f2ec89dde7beedd7.experiment_create <- f923e9f69d33b52d8bbdfd19f2ec89dde7beedd7.admin.power_user Globotron.experiment_create <- Globotron.admin.power_user
    159         head:
    160                 pretty_principal: Globotron
    161                 principal: f923e9f69d33b52d8bbdfd19f2ec89dde7beedd7
     174                principal: 85818428a71f18f8eb1e0d52f427a75101a912d6
     175011: attribute 7c49310d78f138cb0d1f2fcdab863b9e30dab426.experiment_create <- 7c49310d78f138cb0d1f2fcdab863b9e30dab426.admin.power_user Globotron.experiment_create <- Globotron.admin.power_user
     176        head:
     177                pretty_principal: Globotron
     178                principal: 7c49310d78f138cb0d1f2fcdab863b9e30dab426
    162179                role: experiment_create
    163180        tail:
    164181                pretty_principal: Globotron
    165                 principal: f923e9f69d33b52d8bbdfd19f2ec89dde7beedd7
     182                principal: 7c49310d78f138cb0d1f2fcdab863b9e30dab426
    166183                role: power_user
    167                 linked_role: f923e9f69d33b52d8bbdfd19f2ec89dde7beedd7.admin
     184                linked_role: 7c49310d78f138cb0d1f2fcdab863b9e30dab426.admin
    168185012: Error, code -1
    169 013: Error, code -1
    170 
    171186}}}
    172187
     
    224239}}}
    225240
    226 Four dicts/structs are encoded with a serial number as id and the binary of the credential.
     241Four dicts/structs are encoded with a serial number as id and the binary of the credential (the keyids differ in this example).
    227242
    228243Response