-
public interface SignInterface
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceSignInterface.WalletDelegatepublic interfaceSignInterface.DappDelegate
-
Method Summary
Modifier and Type Method Description abstract Unitinitialize(Sign.Params.Init init, Function0<Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)abstract UnitsetWalletDelegate(SignInterface.WalletDelegate delegate)abstract UnitsetDappDelegate(SignInterface.DappDelegate delegate)abstract Unitconnect(Sign.Params.Connect connect, Function0<Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)abstract Unitconnect(Sign.Params.Connect connect, Function1<String, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)abstract Unitauthenticate(Sign.Params.Authenticate authenticate, String walletAppLink, Function1<String, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)abstract UnitdispatchEnvelope(String urlWithEnvelope, Function1<Sign.Model.Error, Unit> onError)abstract Unitpair(Sign.Params.Pair pair, Function1<Sign.Params.Pair, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)abstract UnitapproveSession(Sign.Params.Approve approve, Function1<Sign.Params.Approve, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)abstract UnitrejectSession(Sign.Params.Reject reject, Function1<Sign.Params.Reject, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)abstract UnitapproveAuthenticate(Sign.Params.ApproveAuthenticate approve, Function1<Sign.Params.ApproveAuthenticate, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)abstract UnitrejectAuthenticate(Sign.Params.RejectAuthenticate reject, Function1<Sign.Params.RejectAuthenticate, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)abstract StringformatAuthMessage(Sign.Params.FormatMessage formatMessage)abstract Unitrequest(Sign.Params.Request request, Function1<Sign.Params.Request, Unit> onSuccess, Function1<Sign.Model.SentRequest, Unit> onSuccessWithSentRequest, Function1<Sign.Model.Error, Unit> onError)abstract Unitrequest(Sign.Params.Request request, Function1<Sign.Model.SentRequest, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)abstract Unitrespond(Sign.Params.Response response, Function1<Sign.Params.Response, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)abstract Unitupdate(Sign.Params.Update update, Function1<Sign.Params.Update, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)abstract Unitextend(Sign.Params.Extend extend, Function1<Sign.Params.Extend, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)abstract Unitemit(Sign.Params.Emit emit, Function1<Sign.Params.Emit, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)abstract Unitping(Sign.Params.Ping ping, Sign.Listeners.SessionPing sessionPing)abstract Unitdisconnect(Sign.Params.Disconnect disconnect, Function1<Sign.Params.Disconnect, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)abstract UnitdecryptMessage(Sign.Params.DecryptMessage params, Function1<Sign.Model.Message, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)abstract List<Sign.Model.Session>getListOfActiveSessions()Caution: This function is blocking and runs on the current thread. abstract Sign.Model.SessiongetActiveSessionByTopic(String topic)Caution: This function is blocking and runs on the current thread. abstract List<Sign.Model.Session>getListOfSettledSessions()Caution: This function is blocking and runs on the current thread. abstract Sign.Model.SessiongetSettledSessionByTopic(String topic)Caution: This function is blocking and runs on the current thread. abstract List<Sign.Model.Pairing>getListOfSettledPairings()Caution: This function is blocking and runs on the current thread. abstract List<Sign.Model.PendingRequest>getPendingRequests(String topic)Caution: This function is blocking and runs on the current thread. abstract List<Sign.Model.SessionRequest>getPendingSessionRequests(String topic)Caution: This function is blocking and runs on the current thread. abstract List<Sign.Model.SessionProposal>getSessionProposals()Caution: This function is blocking and runs on the current thread. abstract Sign.Model.VerifyContextgetVerifyContext(Long id)Caution: This function is blocking and runs on the current thread. abstract List<Sign.Model.SessionAuthenticate>getPendingAuthenticateRequests()Caution: This function is blocking and runs on the current thread. abstract List<Sign.Model.VerifyContext>getListOfVerifyContexts()Caution: This function is blocking and runs on the current thread. -
-
Method Detail
-
initialize
abstract Unit initialize(Sign.Params.Init init, Function0<Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
setWalletDelegate
abstract Unit setWalletDelegate(SignInterface.WalletDelegate delegate)
-
setDappDelegate
abstract Unit setDappDelegate(SignInterface.DappDelegate delegate)
-
connect
abstract Unit connect(Sign.Params.Connect connect, Function0<Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
connect
abstract Unit connect(Sign.Params.Connect connect, Function1<String, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
authenticate
abstract Unit authenticate(Sign.Params.Authenticate authenticate, String walletAppLink, Function1<String, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
dispatchEnvelope
abstract Unit dispatchEnvelope(String urlWithEnvelope, Function1<Sign.Model.Error, Unit> onError)
-
pair
abstract Unit pair(Sign.Params.Pair pair, Function1<Sign.Params.Pair, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
approveSession
abstract Unit approveSession(Sign.Params.Approve approve, Function1<Sign.Params.Approve, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
rejectSession
abstract Unit rejectSession(Sign.Params.Reject reject, Function1<Sign.Params.Reject, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
approveAuthenticate
abstract Unit approveAuthenticate(Sign.Params.ApproveAuthenticate approve, Function1<Sign.Params.ApproveAuthenticate, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
rejectAuthenticate
abstract Unit rejectAuthenticate(Sign.Params.RejectAuthenticate reject, Function1<Sign.Params.RejectAuthenticate, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
formatAuthMessage
abstract String formatAuthMessage(Sign.Params.FormatMessage formatMessage)
-
request
abstract Unit request(Sign.Params.Request request, Function1<Sign.Params.Request, Unit> onSuccess, Function1<Sign.Model.SentRequest, Unit> onSuccessWithSentRequest, Function1<Sign.Model.Error, Unit> onError)
-
request
abstract Unit request(Sign.Params.Request request, Function1<Sign.Model.SentRequest, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
respond
abstract Unit respond(Sign.Params.Response response, Function1<Sign.Params.Response, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
update
abstract Unit update(Sign.Params.Update update, Function1<Sign.Params.Update, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
extend
abstract Unit extend(Sign.Params.Extend extend, Function1<Sign.Params.Extend, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
emit
abstract Unit emit(Sign.Params.Emit emit, Function1<Sign.Params.Emit, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
ping
abstract Unit ping(Sign.Params.Ping ping, Sign.Listeners.SessionPing sessionPing)
-
disconnect
abstract Unit disconnect(Sign.Params.Disconnect disconnect, Function1<Sign.Params.Disconnect, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
decryptMessage
abstract Unit decryptMessage(Sign.Params.DecryptMessage params, Function1<Sign.Model.Message, Unit> onSuccess, Function1<Sign.Model.Error, Unit> onError)
-
getListOfActiveSessions
abstract List<Sign.Model.Session> getListOfActiveSessions()
Caution: This function is blocking and runs on the current thread. It is advised that this function be called from background operation
-
getActiveSessionByTopic
abstract Sign.Model.Session getActiveSessionByTopic(String topic)
Caution: This function is blocking and runs on the current thread. It is advised that this function be called from background operation
-
getListOfSettledSessions
abstract List<Sign.Model.Session> getListOfSettledSessions()
Caution: This function is blocking and runs on the current thread. It is advised that this function be called from background operation
-
getSettledSessionByTopic
abstract Sign.Model.Session getSettledSessionByTopic(String topic)
Caution: This function is blocking and runs on the current thread. It is advised that this function be called from background operation
-
getListOfSettledPairings
abstract List<Sign.Model.Pairing> getListOfSettledPairings()
Caution: This function is blocking and runs on the current thread. It is advised that this function be called from background operation
-
getPendingRequests
abstract List<Sign.Model.PendingRequest> getPendingRequests(String topic)
Caution: This function is blocking and runs on the current thread. It is advised that this function be called from background operation
-
getPendingSessionRequests
abstract List<Sign.Model.SessionRequest> getPendingSessionRequests(String topic)
Caution: This function is blocking and runs on the current thread. It is advised that this function be called from background operation
-
getSessionProposals
abstract List<Sign.Model.SessionProposal> getSessionProposals()
Caution: This function is blocking and runs on the current thread. It is advised that this function be called from background operation
-
getVerifyContext
abstract Sign.Model.VerifyContext getVerifyContext(Long id)
Caution: This function is blocking and runs on the current thread. It is advised that this function be called from background operation
-
getPendingAuthenticateRequests
abstract List<Sign.Model.SessionAuthenticate> getPendingAuthenticateRequests()
Caution: This function is blocking and runs on the current thread. It is advised that this function be called from background operation
-
getListOfVerifyContexts
abstract List<Sign.Model.VerifyContext> getListOfVerifyContexts()
Caution: This function is blocking and runs on the current thread. It is advised that this function be called from background operation
-
-
-
-