类 AuthController


  • public class AuthController
    extends java.lang.Object
    The authorization controller is the wrapper class for accessing hive node auth module.
    • 构造器概要

      构造器 
      构造器 说明
      AuthController​(NodeRPCConnection connection, org.elastos.did.DIDDocument appInstanceDidDoc)
      Create the auth controller with the node RPC connection and application instance did document.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      java.lang.String auth​(java.lang.String challengeResponse)
      The auth operation is for getting the access token for node APIs.
      java.lang.String signIn​(org.elastos.did.DIDDocument appInstanceDidDoc)
      Sign in to hive node
      • 从类继承的方法 java.lang.Object

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

      • AuthController

        public AuthController​(NodeRPCConnection connection,
                              org.elastos.did.DIDDocument appInstanceDidDoc)
        Create the auth controller with the node RPC connection and application instance did document.
        参数:
        connection - The node RPC connection
        appInstanceDidDoc - The application instance did document.
    • 方法详细资料

      • signIn

        public java.lang.String signIn​(org.elastos.did.DIDDocument appInstanceDidDoc)
                                throws HiveException
        Sign in to hive node
        参数:
        appInstanceDidDoc - The application
        返回:
        The challenge.
        抛出:
        HiveException - The exception shows the error result of the request.
      • auth

        public java.lang.String auth​(java.lang.String challengeResponse)
                              throws HiveException
        The auth operation is for getting the access token for node APIs.
        参数:
        challengeResponse - The challenge returned by sign in.
        返回:
        The access token.
        抛出:
        HiveException - The exception shows the error result of the request.