Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/Tests/AttAuthority/AttAuthorityClient.py@4377
Revision 4377,
900 bytes
checked in by pjkersha, 12 years ago
(diff) |
Renamed Attribute Authority classes and reran unittests
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/usr/bin/env python |
---|
2 | #from twisted.python import log |
---|
3 | #from twisted.internet import reactor |
---|
4 | |
---|
5 | from ndg.security.common.zsi.attributeauthority.AttAuthority_services import AttAuthorityServiceLocator |
---|
6 | |
---|
7 | def main(**kw): |
---|
8 | locator = AttAuthorityServiceLocator() |
---|
9 | port = locator.getAttAuthority(**kw) |
---|
10 | import pdb;pdb.set_trace() |
---|
11 | attCert = port.getAttCert("USER CERT") |
---|
12 | print "attCert = %s" % attCert |
---|
13 | |
---|
14 | # Factory METHOD Just guessing here |
---|
15 | #response = port.create(CLIENT.CreateRequest()) |
---|
16 | #kw['endPointReference'] = response._EndpointReference |
---|
17 | #iport = locator.getAttAuthority(**kw) |
---|
18 | # reactor.stop() |
---|
19 | |
---|
20 | |
---|
21 | if __name__ == '__main__': |
---|
22 | main(url="http://127.0.0.1:5700/AttributeAuthority") |
---|
23 | # op = GetBasicOptParser() |
---|
24 | # (options, args) = op.parse_args() |
---|
25 | # |
---|
26 | # SetUp(options) |
---|
27 | # kw = GetPortKWArgs(options) |
---|
28 | # reactor.callWhenRunning(main, **kw) |
---|
29 | # reactor.run() |
---|
Note: See
TracBrowser
for help on using the repository browser.