Position: Home page » Ethereum » Ethernet token sending interface

Ethernet token sending interface

Publish: 2021-05-18 16:08:18
1. This form of token is to send the request parameters and a key to the interface after MD5 or other algorithm encryption. The interface can judge whether the encryption results are equal through the request parameters.
2. SchemeRegistry schemeRegistry = new SchemeRegistry();
schemeRegistry.register(new Scheme("http", 80, PlainSocketFactory.getSocketFactory()));
schemeRegistry.register(new Scheme("https", 443, SSLSocketFactory.getSocketFactory()));
cm = new (schemeRegistry);
cm.setMaxTotal(200);
cm.setDefaultMaxPerRoute(2);
HttpHost googleResearch = new HttpHost("research.google.com", 80);
HttpHost wikipediaEn = new HttpHost("en.wikipedia.org", 80);
cm.setMaxPerRoute(new HttpRoute(googleResearch), 30);
cm.setMaxPerRoute(new HttpRoute(wikipediaEn), 50);
DefaultHttpClient client = new DefaultHttpClient(cm);
3. It may affect the cleanliness of data. After all, the data format accepted by each interface is different, and there may also be security policies
4.

Token is in the client frequently request data from the server, the server frequently go to the database to query the user name and password and compare, judge whether the user name and password are correct or not, and make the corresponding prompt, in this context, token came into being. A token is a string generated by the server, which is used as a token for the client to request. After the first login, the server generates a token and returns it to the client. In the future, the client only needs to bring the token to request data without bringing the user name and password again

extended data:

token in fact, the more popular point can be called code. Before some data transmission, the code should be checked. Different code is authorized to operate different data. For example, four types of packets are defined in USB1.1 protocol: token packet, data packet, handshake packet and special packet. The continuous data exchange between the host and the USB device can be divided into three stages. In the first stage, the host sends the token packet. Different token packets can tell the device to do different work if they have different contents (different code). In the second stage, the host sends the data packet, and in the third stage, the device returns a handshake packet

5. It can be realized. Huanxin rest has no restrictions on languages. For example, to get a token is to write HTTP requests, set URL headers body
, and JSON requests. Different languages have different writing methods. It's just not recommended to do rest operation on the client. If the client_ ID
and client_ The secret is obtained maliciously by others on the client, and the app has great risk.
6. 1. Set a key, such as key =ནdsfadfwrasa3434 & ා 39
2. Only the sender and receiver know this key
3. When calling, the sender combines various parameters and generates an access key according to certain rules (various sorting, MD5, IP, etc.)_ key Post together to the API interface
4. The receiver gets the parameters from the post and the access_ key It is also the same as sending, using the key to carry out the same rules for each parameter (various sorting, MD5, IP, etc.) to generate an access_ key2
5. Compare access_ Key and access_ key2 It's the same. Then the operation is allowed. Otherwise, return with an error or join the blacklist.
7. If it's really so easy to pass the verification, why do you add that verification? naive
8.

Hot content
Inn digger Publish: 2021-05-29 20:04:36 Views: 341
Purchase of virtual currency in trust contract dispute Publish: 2021-05-29 20:04:33 Views: 942
Blockchain trust machine Publish: 2021-05-29 20:04:26 Views: 720
Brief introduction of ant mine Publish: 2021-05-29 20:04:25 Views: 848
Will digital currency open in November Publish: 2021-05-29 19:56:16 Views: 861
Global digital currency asset exchange Publish: 2021-05-29 19:54:29 Views: 603
Mining chip machine S11 Publish: 2021-05-29 19:54:26 Views: 945
Ethereum algorithm Sha3 Publish: 2021-05-29 19:52:40 Views: 643
Talking about blockchain is not reliable Publish: 2021-05-29 19:52:26 Views: 754
Mining machine node query Publish: 2021-05-29 19:36:37 Views: 750