程序包 org.elastos.hive

接口 AppContextProvider


  • public interface AppContextProvider
    The provider of the application context provides some information for communicate with the hive node.
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      org.elastos.did.DIDDocument getAppInstanceDocument()
      The method for upper Application to implement to provide current application instance did document as the running context.
      java.util.concurrent.CompletableFuture<java.lang.String> getAuthorization​(java.lang.String authenticationChallengeJWtCode)
      The method for upper Application to implement to acquire the authorization code from user's approval.
      java.lang.String getLocalDataDir()
      The method for upper Application to implement to set up the directory to store local data, especially for access tokens.
    • 方法详细资料

      • getLocalDataDir

        java.lang.String getLocalDataDir()
        The method for upper Application to implement to set up the directory to store local data, especially for access tokens.
        返回:
        The full path to the directory;
      • getAppInstanceDocument

        org.elastos.did.DIDDocument getAppInstanceDocument()
        The method for upper Application to implement to provide current application instance did document as the running context.
        返回:
        The application instance did document.
      • getAuthorization

        java.util.concurrent.CompletableFuture<java.lang.String> getAuthorization​(java.lang.String authenticationChallengeJWtCode)
        The method for upper Application to implement to acquire the authorization code from user's approval.
        参数:
        authenticationChallengeJWtCode - The input challenge code from back-end node service.
        返回:
        The credential issued by user.