类 AuthController
- java.lang.Object
-
- org.elastos.hive.connection.auth.AuthController
-
public class AuthController extends java.lang.ObjectThe 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.
-
-
-
构造器详细资料
-
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 connectionappInstanceDidDoc- The application instance did document.
-
-
方法详细资料
-
signIn
public java.lang.String signIn(org.elastos.did.DIDDocument appInstanceDidDoc) throws HiveExceptionSign 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 HiveExceptionThe 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.
-
-