public class AuthController
extends java.lang.Object
| Constructor and Description |
|---|
AuthController(NodeRPCConnection connection,
org.elastos.did.DIDDocument appInstanceDidDoc)
Create the auth controller with the node RPC connection and application instance did document.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public AuthController(NodeRPCConnection connection, org.elastos.did.DIDDocument appInstanceDidDoc)
connection - The node RPC connectionappInstanceDidDoc - The application instance did document.public java.lang.String signIn(org.elastos.did.DIDDocument appInstanceDidDoc)
throws HiveException
appInstanceDidDoc - The applicationHiveException - The exception shows the error result of the request.public java.lang.String auth(java.lang.String challengeResponse)
throws HiveException
challengeResponse - The challenge returned by sign in.HiveException - The exception shows the error result of the request.