Class QueryUserByWallet

java.lang.Object
net.lightapi.portal.user.query.handler.QueryUserByWallet
All Implemented Interfaces:
com.networknt.rpc.HybridHandler

public class QueryUserByWallet extends Object implements com.networknt.rpc.HybridHandler
This is the endpoint used to get the email address from the Taiji wallet address. There are three scenarios: 1. The same user to get the email address from the taiji address. This is a rare situation. 2. Admin user use his/her credentials (authorization code token) to get another user's email from taiji address 3. Access from other portal services with client credentials token. For security reason, one user cannot get other user's email address with the taiji address unless he/she is an admin
Author:
Steve Hu
  • Field Summary

    Fields inherited from interface com.networknt.rpc.HybridHandler

    ERROR_NOT_DEFINED, REQUEST_SUCCESS, STATUS_VALIDATION_ERROR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    handle(io.undertow.server.HttpServerExchange exchange, Object input)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.networknt.rpc.HybridHandler

    getStatus, getStatus, validate
  • Constructor Details

    • QueryUserByWallet

      public QueryUserByWallet()
  • Method Details

    • handle

      public ByteBuffer handle(io.undertow.server.HttpServerExchange exchange, Object input)
      Specified by:
      handle in interface com.networknt.rpc.HybridHandler