tree: bbe66c394d69db0c2447bc59344cdc52aba88617 [path history] [tgz]
  1. customer/
  2. hacker/
  3. store/
  4. pom.xml
  5. README.md
java-chassis-samples/trust-sample/README.md

Trust Sample

This sample shows using public key mechanism to authenticate user and black/white user list. The public key mechanism security is based on Service Center, and users should first configure Service Center authentication. This sample does not show how to configure Service Center authentication.

In this sample, both customer and hacker try to access store, while store configure it‘s black list to deny hacker’s access.

Precondition

see Precondition

How to run

You can run the samples from your IDE. First start TrustMain in store service. And then start HackerMain in hacker service, the running result should be InvocationException: code=401;msg={message=UNAUTHORIZED}. And then start CustomerMain in customer service, the running result should be a=1, b=2, result=3 .