类 AccessToken

  • 所有已实现的接口:
    CodeFetcher

    public class AccessToken
    extends java.lang.Object
    implements CodeFetcher
    The access token is made by hive node and represents the user DID and the application DID.

    Some of the node APIs requires access token when handling request.

    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      java.lang.String fetch()
      Fetch the code.
      void invalidate()
      Invalidate the code for getting the code from remote server.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • AccessToken

        public AccessToken​(ServiceEndpoint endpoint,
                           DataStorage storage,
                           BridgeHandler bridge)
        Create the access token by service end point, data storage, and bridge handler.
        参数:
        endpoint - The service end point.
        storage - The data storage which is used to save the access token.
        bridge - The bridge handle is used for caller to do sth when getting the access token.
    • 方法详细资料

      • invalidate

        public void invalidate()
        从接口复制的说明: CodeFetcher
        Invalidate the code for getting the code from remote server.
        指定者:
        invalidate 在接口中 CodeFetcher