Ignore:
Timestamp:
Nov 6, 2009 3:34:49 PM (15 years ago)
Author:
Jay Jacobs <Jay.Jacobs@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
2ed74c6
Parents:
3eefc2d
Message:

Added two-party functionality and example

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/abac_client.py

    r3eefc2d r20cda34  
    185185                type="string",default="https://localhost:23235", 
    186186                help="URL to connect to (default %default)")
     187        self.add_option("-n", "--ident", action="store", dest="id",
     188                type="string",default="Alice", 
     189                help="URL to connect to (default %default)")
    187190        self.add_option("-F","--useFedid", action="store_true",
    188191                dest="use_fedid", default=False,
     
    233236                type="string",
    234237                help="Trust target goal for negotiation (required)")
     238        self.add_option("--srcURL", action="store", dest="srcURL",
     239                type="string",default="https://localhost:23235", 
     240                help="Originating URL address (Default: %default)")
     241        self.add_option("--dstURL", action="store", dest="dstURL",
     242                type="string",default="https://localhost:23235", 
     243                help="Peer URL address (Default: %default)")
     244        self.add_option("--srcContext", action="store", dest="srcContext",
     245                type="string",default="Alice", 
     246                help="Service negotiation context (Default: %default)")
     247        self.add_option("--dstContext", action="store", dest="dstContext",
     248                type="string",default="Bob", 
     249                help="Client call back negotiation context (Default: %default)")
     250
    235251        if add_node_callback:
    236252            self.add_option("-n", "--node", action="callback", type="string",
     
    664680        msg = {
    665681                'context': { 'contextID': opts.id },
    666                 'goal': opts.goal
    667                 }
     682                'goal': opts.goal,
     683                'peerURL': opts.dstURL,
     684                'peerContext' : { 'contextID': opts.dstContext },
     685                'selfURL': opts.srcURL
     686        }
    668687
    669688        if opts.debug > 1: print >>sys.stderr, msg
Note: See TracChangeset for help on using the changeset viewer.