Package io.token.tpp

Class Member

  • All Implemented Interfaces:
    Representable

    public class Member
    extends io.token.Member
    implements Representable
    Represents a Member in the Token system. Each member has an active secret and public key pair that is used to perform authentication.
    • Field Summary

      • Fields inherited from class io.token.Member

        cluster, memberId, partnerId, realmId
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      io.reactivex.Completable addRedirectUrls​(java.util.List<java.lang.String> redirectUrls)
      Add redirect URLs.
      void addRedirectUrlsBlocking​(java.util.List<java.lang.String> redirectUrls)
      Add redirect URLs.
      io.reactivex.Observable<io.token.proto.common.token.TokenProtos.TokenOperationResult> cancelToken​(io.token.proto.common.token.TokenProtos.Token token)
      Cancels the token by signing it.
      io.token.proto.common.token.TokenProtos.TokenOperationResult cancelTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token)
      Cancels the token by signing it.
      io.reactivex.Observable<java.lang.String> createCustomization​(io.token.proto.common.blob.BlobProtos.Blob.Payload logo, java.util.Map<java.lang.String,​java.lang.String> colors, java.lang.String consentText, java.lang.String name, java.lang.String appName)
      Creates a customization.
      java.lang.String createCustomizationBlocking​(io.token.proto.common.blob.BlobProtos.Blob.Payload logo, java.util.Map<java.lang.String,​java.lang.String> colors, java.lang.String consentText, java.lang.String name, java.lang.String appName)
      Creates a customization.
      io.reactivex.Observable<Account> createTestBankAccount​(double balance, java.lang.String currency)
      Creates a test bank account in a fake bank and links the account.
      Account createTestBankAccountBlocking​(double balance, java.lang.String currency)
      Creates a test bank account in a fake bank and links the account.
      io.reactivex.Completable deleteWebhookConfig()
      delete the webhook config.
      void deleteWebhookConfigBlocking()
      delete the webhook config.
      Representable forAccessToken​(java.lang.String tokenId)
      Creates a Representable that acts as another member using the access token that was granted by that member.
      Representable forAccessToken​(java.lang.String tokenId, boolean customerInitiated)
      Creates a Representable that acts as another member using the access token that was granted by that member.
      Representable forAccessToken​(java.lang.String tokenId, io.token.proto.common.security.SecurityProtos.CustomerTrackingMetadata customerTrackingMetadata)  
      io.reactivex.Observable<io.token.proto.PagedList<io.token.proto.common.token.TokenProtos.Token,​java.lang.String>> getAccessTokens​(java.lang.String offset, int limit)
      Looks up access tokens owned by the member.
      io.token.proto.PagedList<io.token.proto.common.token.TokenProtos.Token,​java.lang.String> getAccessTokensBlocking​(java.lang.String offset, int limit)
      Looks up tokens owned by the member.
      io.reactivex.Observable<Account> getAccount​(java.lang.String accountId)
      Looks up a funding bank account linked to Token.
      Account getAccountBlocking​(java.lang.String accountId)
      Looks up a funding bank account linked to Token.
      io.reactivex.Observable<java.util.List<Account>> getAccounts()
      Looks up funding bank accounts linked to Token.
      java.util.List<Account> getAccountsBlocking()
      Looks up funding bank accounts linked to Token.
      io.reactivex.Observable<io.token.proto.common.token.TokenProtos.Token> getActiveAccessToken​(java.lang.String toMemberId)
      Looks up a existing access token where the calling member is the grantor and given member is the grantee.
      io.token.proto.common.token.TokenProtos.Token getActiveAccessTokenBlocking​(java.lang.String toMemberId)
      Looks up a existing access token where the calling member is the grantor and given member is the grantee.
      io.reactivex.Observable<java.lang.String> getBankAuthUrl​(java.lang.String bankId, java.lang.String tokenRequestId)
      Get url to bank authorization page for a token request.
      java.lang.String getBankAuthUrlBlocking​(java.lang.String bankId, java.lang.String tokenRequestId)
      Get url to bank authorization page for a token request.
      io.reactivex.Observable<io.token.proto.common.blob.BlobProtos.Blob> getBlob​(java.lang.String blobId)
      Retrieves a blob from the server.
      io.token.proto.common.blob.BlobProtos.Blob getBlobBlocking​(java.lang.String blobId)
      Retrieves a blob from the server.
      io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.BulkTransfer> getBulkTransfer​(java.lang.String bulkTransferId)
      Looks up an existing bulk transfer.
      io.token.proto.common.transfer.TransferProtos.BulkTransfer getBulkTransferBlocking​(java.lang.String bulkTransferId)
      Looks up an existing bulk transfer.
      io.reactivex.Observable<io.token.proto.gateway.Gateway.GetEidasCertificateStatusResponse> getEidasCertificateStatus()
      Get status of the current eIDAS certificate along with the certificate itself, if present.
      io.reactivex.Observable<io.token.proto.gateway.Gateway.GetEidasVerificationStatusResponse> getEidasVerificationStatus​(java.lang.String verificationId)
      Retrieves an eIDAS verification status by verificationId.
      io.reactivex.Observable<ExternalMetadata> getExternalMetadata​(java.lang.String tokenRequestId)
      Get the external metadata from the bank associated with a token request.
      ExternalMetadata getExternalMetadataBlocking​(java.lang.String tokenRequestId)
      Get the external metadata from the bank associated with a token request.
      io.reactivex.Observable<java.util.List<java.lang.String>> getRedirectUrls()
      Get all redirect URLs.
      java.util.List<java.lang.String> getRedirectUrlsBlocking()
      Get all redirect URLs.
      io.reactivex.Observable<io.token.proto.common.submission.SubmissionProtos.StandingOrderSubmission> getStandingOrderSubmission​(java.lang.String submissionId)
      Looks up an existing Token standing order submission.
      io.token.proto.common.submission.SubmissionProtos.StandingOrderSubmission getStandingOrderSubmissionBlocking​(java.lang.String submissionId)
      Looks up an existing Token standing order submission.
      io.reactivex.Observable<io.token.proto.PagedList<io.token.proto.common.submission.SubmissionProtos.StandingOrderSubmission,​java.lang.String>> getStandingOrderSubmissions​(java.lang.String offset, int limit)
      Looks up existing Token standing order submissions.
      io.token.proto.PagedList<io.token.proto.common.submission.SubmissionProtos.StandingOrderSubmission,​java.lang.String> getStandingOrderSubmissionsBlocking​(java.lang.String offset, int limit)
      Looks up existing Token standing order submissions.
      io.reactivex.Observable<io.token.proto.common.token.TokenProtos.Token> getToken​(java.lang.String tokenId)
      Looks up a existing token.
      io.token.proto.common.token.TokenProtos.Token getTokenBlocking​(java.lang.String tokenId)
      Looks up an existing token.
      io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> getTransfer​(java.lang.String transferId)
      Looks up an existing token transfer.
      io.token.proto.common.transfer.TransferProtos.Transfer getTransferBlocking​(java.lang.String transferId)
      Looks up an existing token transfer.
      io.reactivex.Observable<io.token.proto.PagedList<io.token.proto.common.transfer.TransferProtos.Transfer,​java.lang.String>> getTransfers​(java.lang.String offset, int limit, java.lang.String tokenId)
      Looks up existing token transfers.
      io.token.proto.PagedList<io.token.proto.common.transfer.TransferProtos.Transfer,​java.lang.String> getTransfersBlocking​(java.lang.String offset, int limit, java.lang.String tokenId)
      Looks up existing token transfers.
      io.reactivex.Observable<io.token.proto.PagedList<io.token.proto.common.token.TokenProtos.Token,​java.lang.String>> getTransferTokens​(java.lang.String offset, int limit)
      Looks up transfer tokens owned by the member.
      io.token.proto.PagedList<io.token.proto.common.token.TokenProtos.Token,​java.lang.String> getTransferTokensBlocking​(java.lang.String offset, int limit)
      Looks up tokens owned by the member.
      io.reactivex.Observable<io.token.proto.common.webhook.WebhookProtos.Webhook.Config> getWebhookConfig()
      Get the webhook config.
      io.token.proto.common.webhook.WebhookProtos.Webhook.Config getWebhookConfigBlocking()
      Get the webhook config.
      io.reactivex.Observable<java.lang.String> onBankAuthCallback​(java.lang.String bankId, java.lang.String query)
      Forward the callback from the bank (after user authentication) to Token.
      java.lang.String onBankAuthCallbackBlocking​(java.lang.String bankId, java.lang.String query)
      Forward the callback from the bank (after user authentication) to Token.
      io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.BulkTransfer> redeemBulkTransferToken​(java.lang.String tokenId)
      Redeems a bulk transfer token.
      io.token.proto.common.transfer.TransferProtos.BulkTransfer redeemBulkTransferTokenBlocking​(java.lang.String tokenId)
      Redeems a bulk transfer token.
      io.reactivex.Observable<io.token.proto.common.submission.SubmissionProtos.StandingOrderSubmission> redeemStandingOrderToken​(java.lang.String tokenId)
      Redeems a standing order token.
      io.token.proto.common.submission.SubmissionProtos.StandingOrderSubmission redeemStandingOrderTokenBlocking​(java.lang.String tokenId)
      Redeems a standing order token.
      io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token)
      Redeems a transfer token.
      io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token, io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination destination)
      Redeems a transfer token.
      io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token, io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination destination, java.lang.String refId)
      Deprecated.
      Use TransferDestination instead of TransferEndpoint.
      io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token, io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint destination)
      Deprecated.
      io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token, io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint destination, java.lang.String refId)
      Deprecated.
      Use TransferDestination instead of TransferEndpoint.
      io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token, java.lang.Double amount, java.lang.String currency, io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination destination)
      Redeems a transfer token.
      io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token, java.lang.Double amount, java.lang.String currency, io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint destination)
      Deprecated.
      Use TransferDestination instead of TransferEndpoint.
      io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token, java.lang.Double amount, java.lang.String currency, java.lang.String description)
      Redeems a transfer token.
      io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token, java.lang.Double amount, java.lang.String currency, java.lang.String description, io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination destination)
      Redeems a transfer token.
      io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token, java.lang.Double amount, java.lang.String currency, java.lang.String description, io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination destination, java.lang.String refId)
      Redeems a transfer token.
      io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token, java.lang.Double amount, java.lang.String currency, java.lang.String description, io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint destination)
      Deprecated.
      Use TransferDestination instead of TransferEndpoint.
      io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token, java.lang.Double amount, java.lang.String currency, java.lang.String description, io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint destination, java.lang.String refId)
      Deprecated.
      Use TransferDestination instead of TransferEndpoint.
      io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token, java.lang.Double amount, java.lang.String currency, java.lang.String description, java.lang.String refId)
      Redeems a transfer token.
      io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token, java.lang.String refId)
      Redeems a transfer token.
      io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token)
      Redeems a transfer token.
      io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token, io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination destination)
      Redeems a transfer token.
      io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token, io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination destination, java.lang.String refId)
      Redeems a transfer token.
      io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token, io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint destination)
      Deprecated.
      Use TransferDestination instead of TransferEndpoint.
      io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token, io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint destination, java.lang.String refId)
      Deprecated.
      Use TransferDestination instead of TransferEndpoint.
      io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token, java.lang.Double amount, java.lang.String currency, io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination destination)
      Redeems a transfer token.
      io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token, java.lang.Double amount, java.lang.String currency, io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint destination)
      Deprecated.
      Use TransferDestination instead of TransferEndpoint.
      io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token, java.lang.Double amount, java.lang.String currency, java.lang.String description)
      Redeems a transfer token.
      io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token, java.lang.Double amount, java.lang.String currency, java.lang.String description, io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination destination)
      Redeems a transfer token.
      io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token, java.lang.Double amount, java.lang.String currency, java.lang.String description, io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination destination, java.lang.String refId)
      Redeems a transfer token.
      io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token, java.lang.Double amount, java.lang.String currency, java.lang.String description, io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint destination)
      Deprecated.
      Use TransferDestination instead of TransferEndpoint.
      io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token, java.lang.Double amount, java.lang.String currency, java.lang.String description, io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint destination, java.lang.String refId)
      Deprecated.
      Use TransferDestination instead of TransferEndpoint.
      io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token, java.lang.Double amount, java.lang.String currency, java.lang.String description, java.lang.String refId)
      Redeems a transfer token.
      io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token, java.lang.String refId)
      Redeems a transfer token.
      io.reactivex.Completable removeRedirectUrls​(java.util.List<java.lang.String> redirectUrls)
      Remove redirect URLs.
      void removeRedirectUrlsBlocking​(java.util.List<java.lang.String> redirectUrls)
      Remove redirect URLs.
      io.reactivex.Observable<io.token.proto.common.member.MemberProtos.Profile> setProfile​(io.token.proto.common.member.MemberProtos.Profile profile)
      Replaces auth'd member's public profile.
      io.token.proto.common.member.MemberProtos.Profile setProfileBlocking​(io.token.proto.common.member.MemberProtos.Profile profile)
      Replaces the authenticated member's public profile.
      io.reactivex.Completable setProfilePicture​(java.lang.String type, byte[] data)
      Replaces auth'd member's public profile picture.
      void setProfilePictureBlocking​(java.lang.String type, byte[] data)
      Replaces auth'd member's public profile picture.
      io.reactivex.Completable setTokenRequestTransferDestinations​(java.lang.String tokenRequestId, java.util.List<io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination> transferDestinations)
      Sets destination account for once if it hasn't been set.
      void setTokenRequestTransferDestinationsBlocking​(java.lang.String tokenRequestId, java.util.List<io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination> transferDestinations)
      Sets destination account for once if it hasn't been set.
      io.reactivex.Completable setWebhookConfig​(io.token.proto.common.webhook.WebhookProtos.Webhook.Config config)
      Set a webhook config.
      void setWebhookConfigBlocking​(io.token.proto.common.webhook.WebhookProtos.Webhook.Config config)
      Set a webhook config.
      io.reactivex.Observable<java.lang.String> storeTokenRequest​(io.token.tokenrequest.TokenRequest tokenRequest)
      Stores a token request.
      java.lang.String storeTokenRequestBlocking​(io.token.tokenrequest.TokenRequest tokenRequest)
      Stores a token request to be retrieved later (possibly by another member).
      io.reactivex.Observable<io.token.proto.common.notification.NotificationProtos.NotifyStatus> triggerBalanceStepUpNotification​(java.util.List<java.lang.String> accountIds)
      Trigger a step up notification for balance requests.
      io.token.proto.common.notification.NotificationProtos.NotifyStatus triggerBalanceStepUpNotificationBlocking​(java.util.List<java.lang.String> accountIds)
      Trigger a step up notification for balance requests.
      io.reactivex.Observable<io.token.proto.common.notification.NotificationProtos.NotifyStatus> triggerTransactionStepUpNotification​(java.lang.String accountId)
      Trigger a step up notification for transaction requests.
      io.token.proto.common.notification.NotificationProtos.NotifyStatus triggerTransactionStepUpNotificationBlocking​(java.lang.String accountId)
      Trigger a step up notification for transaction requests.
      io.reactivex.Observable<io.token.proto.gateway.Gateway.VerifyEidasResponse> verifyEidas​(io.token.proto.common.eidas.EidasProtos.VerifyEidasPayload payload, java.lang.String signature)
      Verifies eIDAS alias with an eIDAS certificate, containing auth number equal to the value of the alias.
      • Methods inherited from class io.token.Member

        addAlias, addAliasBlocking, addAliases, addAliasesBlocking, addRecoveryRule, addRecoveryRuleBlocking, aliases, aliasesBlocking, approveKey, approveKey, approveKeyBlocking, approveKeyBlocking, approveKeys, approveKeysBlocking, authorizeRecovery, authorizeRecoveryBlocking, confirmFunds, confirmFundsBlocking, createTestBankAccountImpl, deleteMember, deleteMemberBlocking, equals, firstAlias, firstAliasBlocking, getAccountImpl, getAccountsImpl, getBalance, getBalanceBlocking, getBalances, getBalancesBlocking, getBankInfo, getBankInfoBlocking, getDefaultAgent, getDefaultAgentBlocking, getKeys, getKeysBlocking, getProfile, getProfileBlocking, getProfilePicture, getProfilePictureBlocking, getStandingOrder, getStandingOrderBlocking, getStandingOrders, getStandingOrdersBlocking, getTokenCluster, getTransaction, getTransactionBlocking, getTransactions, getTransactions, getTransactionsBlocking, getTransactionsBlocking, hashCode, lastHash, lastHashBlocking, memberId, partnerId, realmId, removeAlias, removeAliasBlocking, removeAliases, removeAliasesBlocking, removeKey, removeKeyBlocking, removeKeys, removeKeysBlocking, resolveTransferDestinations, resolveTransferDestinationsBlocking, retryVerification, retryVerificationBlocking, signTokenPayload, toString, useDefaultRecoveryRule, useDefaultRecoveryRuleBlocking, verifyAlias, verifyAliasBlocking
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • setProfile

        public io.reactivex.Observable<io.token.proto.common.member.MemberProtos.Profile> setProfile​(io.token.proto.common.member.MemberProtos.Profile profile)
        Replaces auth'd member's public profile.
        Parameters:
        profile - profile to set
        Returns:
        updated profile
      • setProfileBlocking

        public io.token.proto.common.member.MemberProtos.Profile setProfileBlocking​(io.token.proto.common.member.MemberProtos.Profile profile)
        Replaces the authenticated member's public profile.
        Parameters:
        profile - Profile to set
        Returns:
        updated profile
      • setProfilePicture

        public io.reactivex.Completable setProfilePicture​(java.lang.String type,
                                                          byte[] data)
        Replaces auth'd member's public profile picture.
        Parameters:
        type - MIME type of picture
        data - image data
        Returns:
        completable that indicates whether the operation finished or had an error
      • setProfilePictureBlocking

        public void setProfilePictureBlocking​(java.lang.String type,
                                              byte[] data)
        Replaces auth'd member's public profile picture.
        Parameters:
        type - MIME type of picture
        data - image data
      • getAccounts

        public io.reactivex.Observable<java.util.List<Account>> getAccounts()
        Looks up funding bank accounts linked to Token.
        Specified by:
        getAccounts in interface Representable
        Returns:
        list of accounts
      • getAccountsBlocking

        public java.util.List<Account> getAccountsBlocking()
        Looks up funding bank accounts linked to Token.
        Specified by:
        getAccountsBlocking in interface Representable
        Returns:
        list of linked accounts
      • getAccount

        public io.reactivex.Observable<Account> getAccount​(java.lang.String accountId)
        Looks up a funding bank account linked to Token.
        Specified by:
        getAccount in interface Representable
        Parameters:
        accountId - account id
        Returns:
        looked up account
      • getAccountBlocking

        public Account getAccountBlocking​(java.lang.String accountId)
        Looks up a funding bank account linked to Token.
        Specified by:
        getAccountBlocking in interface Representable
        Parameters:
        accountId - account id
        Returns:
        looked up account
      • getBlob

        public io.reactivex.Observable<io.token.proto.common.blob.BlobProtos.Blob> getBlob​(java.lang.String blobId)
        Retrieves a blob from the server.
        Parameters:
        blobId - id of the blob
        Returns:
        Blob
      • getBlobBlocking

        public io.token.proto.common.blob.BlobProtos.Blob getBlobBlocking​(java.lang.String blobId)
        Retrieves a blob from the server.
        Parameters:
        blobId - id of the blob
        Returns:
        Blob
      • forAccessToken

        public Representable forAccessToken​(java.lang.String tokenId)
        Creates a Representable that acts as another member using the access token that was granted by that member.
        Parameters:
        tokenId - the token id
        Returns:
        the Representable
      • forAccessToken

        public Representable forAccessToken​(java.lang.String tokenId,
                                            boolean customerInitiated)
        Creates a Representable that acts as another member using the access token that was granted by that member.
        Parameters:
        tokenId - the token id
        customerInitiated - whether the call is initiated by the customer
        Returns:
        the Representable
      • forAccessToken

        public Representable forAccessToken​(java.lang.String tokenId,
                                            io.token.proto.common.security.SecurityProtos.CustomerTrackingMetadata customerTrackingMetadata)
      • redeemToken

        public io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token)
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        Returns:
        transfer record
      • redeemToken

        public io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                                           java.lang.String refId)
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        refId - transfer reference id
        Returns:
        transfer record
      • redeemToken

        public io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                                           io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination destination)
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        destination - transfer instruction destination
        Returns:
        transfer record
      • redeemToken

        @Deprecated
        public io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                                           io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint destination)
        Deprecated.
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        destination - transfer instruction destination
        Returns:
        transfer record
      • redeemToken

        public io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                                           io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination destination,
                                                                                                           java.lang.String refId)
        Deprecated.
        Use TransferDestination instead of TransferEndpoint.
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        destination - transfer instruction destination
        refId - transfer reference id
        Returns:
        transfer record
      • redeemToken

        @Deprecated
        public io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                                           io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint destination,
                                                                                                           java.lang.String refId)
        Deprecated.
        Use TransferDestination instead of TransferEndpoint.
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        destination - transfer instruction destination
        refId - transfer reference id
        Returns:
        transfer record
      • redeemToken

        public io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                                           @Nullable
                                                                                                           java.lang.Double amount,
                                                                                                           @Nullable
                                                                                                           java.lang.String currency,
                                                                                                           @Nullable
                                                                                                           java.lang.String description)
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        amount - transfer amount
        currency - transfer currency code, e.g. "EUR"
        description - transfer description
        Returns:
        transfer record
      • redeemToken

        public io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                                           @Nullable
                                                                                                           java.lang.Double amount,
                                                                                                           @Nullable
                                                                                                           java.lang.String currency,
                                                                                                           @Nullable
                                                                                                           io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination destination)
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        amount - transfer amount
        currency - transfer currency code, e.g. "EUR"
        destination - transfer instruction destination
        Returns:
        transfer record
      • redeemToken

        @Deprecated
        public io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                                           @Nullable
                                                                                                           java.lang.Double amount,
                                                                                                           @Nullable
                                                                                                           java.lang.String currency,
                                                                                                           @Nullable
                                                                                                           io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint destination)
        Deprecated.
        Use TransferDestination instead of TransferEndpoint.
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        amount - transfer amount
        currency - transfer currency code, e.g. "EUR"
        destination - transfer instruction destination
        Returns:
        transfer record
      • redeemToken

        public io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                                           @Nullable
                                                                                                           java.lang.Double amount,
                                                                                                           @Nullable
                                                                                                           java.lang.String currency,
                                                                                                           @Nullable
                                                                                                           java.lang.String description,
                                                                                                           @Nullable
                                                                                                           io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination destination)
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        amount - transfer amount
        currency - transfer currency code, e.g. "EUR"
        description - transfer description
        destination - transfer instruction destination
        Returns:
        transfer record
      • redeemToken

        @Deprecated
        public io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                                           @Nullable
                                                                                                           java.lang.Double amount,
                                                                                                           @Nullable
                                                                                                           java.lang.String currency,
                                                                                                           @Nullable
                                                                                                           java.lang.String description,
                                                                                                           @Nullable
                                                                                                           io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint destination)
        Deprecated.
        Use TransferDestination instead of TransferEndpoint.
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        amount - transfer amount
        currency - transfer currency code, e.g. "EUR"
        description - transfer description
        destination - transfer instruction destination
        Returns:
        transfer record
      • redeemToken

        public io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                                           @Nullable
                                                                                                           java.lang.Double amount,
                                                                                                           @Nullable
                                                                                                           java.lang.String currency,
                                                                                                           @Nullable
                                                                                                           java.lang.String description,
                                                                                                           @Nullable
                                                                                                           java.lang.String refId)
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        amount - transfer amount
        currency - transfer currency code, e.g. "EUR"
        description - transfer description
        refId - transfer reference id
        Returns:
        transfer record
      • redeemToken

        public io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                                           @Nullable
                                                                                                           java.lang.Double amount,
                                                                                                           @Nullable
                                                                                                           java.lang.String currency,
                                                                                                           @Nullable
                                                                                                           java.lang.String description,
                                                                                                           @Nullable
                                                                                                           io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination destination,
                                                                                                           @Nullable
                                                                                                           java.lang.String refId)
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        amount - transfer amount
        currency - transfer currency code, e.g. "EUR"
        description - transfer description
        destination - the transfer instruction destination
        refId - transfer reference id
        Returns:
        transfer record
      • redeemToken

        @Deprecated
        public io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> redeemToken​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                                           @Nullable
                                                                                                           java.lang.Double amount,
                                                                                                           @Nullable
                                                                                                           java.lang.String currency,
                                                                                                           @Nullable
                                                                                                           java.lang.String description,
                                                                                                           @Nullable
                                                                                                           io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint destination,
                                                                                                           @Nullable
                                                                                                           java.lang.String refId)
        Deprecated.
        Use TransferDestination instead of TransferEndpoint.
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        amount - transfer amount
        currency - transfer currency code, e.g. "EUR"
        description - transfer description
        destination - the transfer instruction destination
        refId - transfer reference id
        Returns:
        transfer record
      • redeemTokenBlocking

        public io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token)
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        Returns:
        transfer record
      • redeemTokenBlocking

        public io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                          java.lang.String refId)
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        refId - transfer reference id
        Returns:
        transfer record
      • redeemTokenBlocking

        public io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                          io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination destination)
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        destination - transfer instruction destination
        Returns:
        transfer record
      • redeemTokenBlocking

        @Deprecated
        public io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                          io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint destination)
        Deprecated.
        Use TransferDestination instead of TransferEndpoint.
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        destination - transfer instruction destination
        Returns:
        transfer record
      • redeemTokenBlocking

        public io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                          io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination destination,
                                                                                          java.lang.String refId)
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        destination - transfer instruction destination
        refId - transfer reference id
        Returns:
        transfer record
      • redeemTokenBlocking

        public io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                          io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint destination,
                                                                                          java.lang.String refId)
        Deprecated.
        Use TransferDestination instead of TransferEndpoint.
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        destination - transfer instruction destination
        refId - transfer reference id
        Returns:
        transfer record
      • redeemTokenBlocking

        public io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                          @Nullable
                                                                                          java.lang.Double amount,
                                                                                          @Nullable
                                                                                          java.lang.String currency,
                                                                                          @Nullable
                                                                                          java.lang.String description)
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        amount - transfer amount
        currency - transfer currency code, e.g. "EUR"
        description - transfer description
        Returns:
        transfer record
      • redeemTokenBlocking

        public io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                          @Nullable
                                                                                          java.lang.Double amount,
                                                                                          @Nullable
                                                                                          java.lang.String currency,
                                                                                          @Nullable
                                                                                          io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination destination)
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        amount - transfer amount
        currency - transfer currency code, e.g. "EUR"
        destination - transfer instruction destination
        Returns:
        transfer record
      • redeemTokenBlocking

        @Deprecated
        public io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                          @Nullable
                                                                                          java.lang.Double amount,
                                                                                          @Nullable
                                                                                          java.lang.String currency,
                                                                                          @Nullable
                                                                                          io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint destination)
        Deprecated.
        Use TransferDestination instead of TransferEndpoint.
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        amount - transfer amount
        currency - transfer currency code, e.g. "EUR"
        destination - transfer instruction destination
        Returns:
        transfer record
      • redeemTokenBlocking

        public io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                          @Nullable
                                                                                          java.lang.Double amount,
                                                                                          @Nullable
                                                                                          java.lang.String currency,
                                                                                          @Nullable
                                                                                          java.lang.String description,
                                                                                          @Nullable
                                                                                          io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination destination)
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        amount - transfer amount
        currency - transfer currency code, e.g. "EUR"
        description - transfer description
        destination - transfer instruction destination
        Returns:
        transfer record
      • redeemTokenBlocking

        @Deprecated
        public io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                          @Nullable
                                                                                          java.lang.Double amount,
                                                                                          @Nullable
                                                                                          java.lang.String currency,
                                                                                          @Nullable
                                                                                          java.lang.String description,
                                                                                          @Nullable
                                                                                          io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint destination)
        Deprecated.
        Use TransferDestination instead of TransferEndpoint.
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        amount - transfer amount
        currency - transfer currency code, e.g. "EUR"
        description - transfer description
        destination - transfer instruction destination
        Returns:
        transfer record
      • redeemTokenBlocking

        public io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                          @Nullable
                                                                                          java.lang.Double amount,
                                                                                          @Nullable
                                                                                          java.lang.String currency,
                                                                                          @Nullable
                                                                                          java.lang.String description,
                                                                                          @Nullable
                                                                                          java.lang.String refId)
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        amount - transfer amount
        currency - transfer currency code, e.g. "EUR"
        description - transfer description
        refId - transfer reference id
        Returns:
        transfer record
      • redeemTokenBlocking

        public io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                          @Nullable
                                                                                          java.lang.Double amount,
                                                                                          @Nullable
                                                                                          java.lang.String currency,
                                                                                          @Nullable
                                                                                          java.lang.String description,
                                                                                          @Nullable
                                                                                          io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination destination,
                                                                                          @Nullable
                                                                                          java.lang.String refId)
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        amount - transfer amount
        currency - transfer currency code, e.g. "EUR"
        description - transfer description
        destination - transfer instruction destination
        refId - transfer reference id
        Returns:
        transfer record
      • redeemTokenBlocking

        @Deprecated
        public io.token.proto.common.transfer.TransferProtos.Transfer redeemTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token,
                                                                                          @Nullable
                                                                                          java.lang.Double amount,
                                                                                          @Nullable
                                                                                          java.lang.String currency,
                                                                                          @Nullable
                                                                                          java.lang.String description,
                                                                                          @Nullable
                                                                                          io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint destination,
                                                                                          @Nullable
                                                                                          java.lang.String refId)
        Deprecated.
        Use TransferDestination instead of TransferEndpoint.
        Redeems a transfer token.
        Parameters:
        token - transfer token to redeem
        amount - transfer amount
        currency - transfer currency code, e.g. "EUR"
        description - transfer description
        destination - transfer instruction destination
        refId - transfer reference id
        Returns:
        transfer record
      • redeemBulkTransferToken

        public io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.BulkTransfer> redeemBulkTransferToken​(java.lang.String tokenId)
        Redeems a bulk transfer token.
        Parameters:
        tokenId - ID of token to redeem
        Returns:
        bulk transfer record
      • redeemBulkTransferTokenBlocking

        public io.token.proto.common.transfer.TransferProtos.BulkTransfer redeemBulkTransferTokenBlocking​(java.lang.String tokenId)
        Redeems a bulk transfer token.
        Parameters:
        tokenId - ID of token to redeem
        Returns:
        bulk transfer record
      • redeemStandingOrderToken

        public io.reactivex.Observable<io.token.proto.common.submission.SubmissionProtos.StandingOrderSubmission> redeemStandingOrderToken​(java.lang.String tokenId)
        Redeems a standing order token.
        Parameters:
        tokenId - ID of token to redeem
        Returns:
        standing order submission
      • redeemStandingOrderTokenBlocking

        public io.token.proto.common.submission.SubmissionProtos.StandingOrderSubmission redeemStandingOrderTokenBlocking​(java.lang.String tokenId)
        Redeems a standing order token.
        Parameters:
        tokenId - ID of token to redeem
        Returns:
        standing order submission
      • storeTokenRequest

        public io.reactivex.Observable<java.lang.String> storeTokenRequest​(io.token.tokenrequest.TokenRequest tokenRequest)
        Stores a token request. This can be retrieved later by the token request id.
        Parameters:
        tokenRequest - token request
        Returns:
        token request id
      • storeTokenRequestBlocking

        public java.lang.String storeTokenRequestBlocking​(io.token.tokenrequest.TokenRequest tokenRequest)
        Stores a token request to be retrieved later (possibly by another member).
        Parameters:
        tokenRequest - token request
        Returns:
        ID to reference the stored token request
      • setTokenRequestTransferDestinations

        public io.reactivex.Completable setTokenRequestTransferDestinations​(java.lang.String tokenRequestId,
                                                                            java.util.List<io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination> transferDestinations)
        Sets destination account for once if it hasn't been set.
        Parameters:
        tokenRequestId - token request Id
        transferDestinations - destination account
        Returns:
        observable that completes when request handled
      • setTokenRequestTransferDestinationsBlocking

        public void setTokenRequestTransferDestinationsBlocking​(java.lang.String tokenRequestId,
                                                                java.util.List<io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination> transferDestinations)
        Sets destination account for once if it hasn't been set.
        Parameters:
        tokenRequestId - token request Id
        transferDestinations - destination account
      • createCustomization

        public io.reactivex.Observable<java.lang.String> createCustomization​(io.token.proto.common.blob.BlobProtos.Blob.Payload logo,
                                                                             java.util.Map<java.lang.String,​java.lang.String> colors,
                                                                             java.lang.String consentText,
                                                                             java.lang.String name,
                                                                             java.lang.String appName)
        Creates a customization.
        Parameters:
        logo - logo
        colors - map of ARGB colors #AARRGGBB
        consentText - consent text
        name - display name
        appName - corresponding app name
        Returns:
        customization id
      • createCustomizationBlocking

        public java.lang.String createCustomizationBlocking​(io.token.proto.common.blob.BlobProtos.Blob.Payload logo,
                                                            java.util.Map<java.lang.String,​java.lang.String> colors,
                                                            java.lang.String consentText,
                                                            java.lang.String name,
                                                            java.lang.String appName)
        Creates a customization.
        Parameters:
        logo - logo
        colors - map of ARGB colors #AARRGGBB
        consentText - consent text
        name - display name
        appName - corresponding app name
        Returns:
        customization id
      • getTransfer

        public io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.Transfer> getTransfer​(java.lang.String transferId)
        Looks up an existing token transfer.
        Parameters:
        transferId - ID of the transfer record
        Returns:
        transfer record
      • getTransferBlocking

        public io.token.proto.common.transfer.TransferProtos.Transfer getTransferBlocking​(java.lang.String transferId)
        Looks up an existing token transfer.
        Parameters:
        transferId - ID of the transfer record
        Returns:
        transfer record
      • getBulkTransfer

        public io.reactivex.Observable<io.token.proto.common.transfer.TransferProtos.BulkTransfer> getBulkTransfer​(java.lang.String bulkTransferId)
        Looks up an existing bulk transfer.
        Parameters:
        bulkTransferId - bulk transfer ID
        Returns:
        bulk transfer record
      • getBulkTransferBlocking

        public io.token.proto.common.transfer.TransferProtos.BulkTransfer getBulkTransferBlocking​(java.lang.String bulkTransferId)
        Looks up an existing bulk transfer.
        Parameters:
        bulkTransferId - bulk transfer ID
        Returns:
        bulk transfer record
      • getStandingOrderSubmission

        public io.reactivex.Observable<io.token.proto.common.submission.SubmissionProtos.StandingOrderSubmission> getStandingOrderSubmission​(java.lang.String submissionId)
        Looks up an existing Token standing order submission.
        Parameters:
        submissionId - ID of the standing orde submission
        Returns:
        standing order submission
      • getStandingOrderSubmissionBlocking

        public io.token.proto.common.submission.SubmissionProtos.StandingOrderSubmission getStandingOrderSubmissionBlocking​(java.lang.String submissionId)
        Looks up an existing Token standing order submission.
        Parameters:
        submissionId - ID of the standing orde submission
        Returns:
        standing order submission
      • getTransfers

        public io.reactivex.Observable<io.token.proto.PagedList<io.token.proto.common.transfer.TransferProtos.Transfer,​java.lang.String>> getTransfers​(@Nullable
                                                                                                                                                             java.lang.String offset,
                                                                                                                                                             int limit,
                                                                                                                                                             @Nullable
                                                                                                                                                             java.lang.String tokenId)
        Looks up existing token transfers.
        Parameters:
        offset - optional offset to start at
        limit - max number of records to return
        tokenId - optional token id to restrict the search
        Returns:
        transfer record
      • getTransfersBlocking

        public io.token.proto.PagedList<io.token.proto.common.transfer.TransferProtos.Transfer,​java.lang.String> getTransfersBlocking​(@Nullable
                                                                                                                                            java.lang.String offset,
                                                                                                                                            int limit,
                                                                                                                                            @Nullable
                                                                                                                                            java.lang.String tokenId)
        Looks up existing token transfers.
        Parameters:
        offset - optional offset to start at
        limit - max number of records to return
        tokenId - optional token id to restrict the search
        Returns:
        transfer record
      • getStandingOrderSubmissions

        public io.reactivex.Observable<io.token.proto.PagedList<io.token.proto.common.submission.SubmissionProtos.StandingOrderSubmission,​java.lang.String>> getStandingOrderSubmissions​(@Nullable
                                                                                                                                                                                               java.lang.String offset,
                                                                                                                                                                                               int limit)
        Looks up existing Token standing order submissions.
        Parameters:
        offset - optional offset to start at
        limit - max number of submissions to return
        Returns:
        standing order submissions
      • getStandingOrderSubmissionsBlocking

        public io.token.proto.PagedList<io.token.proto.common.submission.SubmissionProtos.StandingOrderSubmission,​java.lang.String> getStandingOrderSubmissionsBlocking​(@Nullable
                                                                                                                                                                              java.lang.String offset,
                                                                                                                                                                              int limit)
        Looks up existing Token standing order submissions.
        Parameters:
        offset - optional offset to start at
        limit - max number of submissions to return
        Returns:
        standing order submissions
      • getActiveAccessToken

        public io.reactivex.Observable<io.token.proto.common.token.TokenProtos.Token> getActiveAccessToken​(java.lang.String toMemberId)
        Looks up a existing access token where the calling member is the grantor and given member is the grantee.
        Parameters:
        toMemberId - beneficiary of the active access token
        Returns:
        access token returned by the server
      • getActiveAccessTokenBlocking

        public io.token.proto.common.token.TokenProtos.Token getActiveAccessTokenBlocking​(java.lang.String toMemberId)
        Looks up a existing access token where the calling member is the grantor and given member is the grantee.
        Parameters:
        toMemberId - beneficiary of the active access token
        Returns:
        access token returned by the server
      • getAccessTokens

        public io.reactivex.Observable<io.token.proto.PagedList<io.token.proto.common.token.TokenProtos.Token,​java.lang.String>> getAccessTokens​(@Nullable
                                                                                                                                                       java.lang.String offset,
                                                                                                                                                       int limit)
        Looks up access tokens owned by the member.
        Parameters:
        offset - optional offset to start at
        limit - max number of records to return
        Returns:
        access tokens owned by the member
      • getAccessTokensBlocking

        public io.token.proto.PagedList<io.token.proto.common.token.TokenProtos.Token,​java.lang.String> getAccessTokensBlocking​(@Nullable
                                                                                                                                      java.lang.String offset,
                                                                                                                                      int limit)
        Looks up tokens owned by the member.
        Parameters:
        offset - optional offset offset to start at
        limit - max number of records to return
        Returns:
        access tokens owned by the member
      • getTransferTokens

        public io.reactivex.Observable<io.token.proto.PagedList<io.token.proto.common.token.TokenProtos.Token,​java.lang.String>> getTransferTokens​(@Nullable
                                                                                                                                                         java.lang.String offset,
                                                                                                                                                         int limit)
        Looks up transfer tokens owned by the member.
        Parameters:
        offset - optional offset to start at
        limit - max number of records to return
        Returns:
        transfer tokens owned by the member
      • getTransferTokensBlocking

        public io.token.proto.PagedList<io.token.proto.common.token.TokenProtos.Token,​java.lang.String> getTransferTokensBlocking​(@Nullable
                                                                                                                                        java.lang.String offset,
                                                                                                                                        int limit)
        Looks up tokens owned by the member.
        Parameters:
        offset - optional offset to start at
        limit - max number of records to return
        Returns:
        transfer tokens owned by the member
      • getToken

        public io.reactivex.Observable<io.token.proto.common.token.TokenProtos.Token> getToken​(java.lang.String tokenId)
        Looks up a existing token.
        Parameters:
        tokenId - token id
        Returns:
        token returned by the server
      • getTokenBlocking

        public io.token.proto.common.token.TokenProtos.Token getTokenBlocking​(java.lang.String tokenId)
        Looks up an existing token.
        Parameters:
        tokenId - token id
        Returns:
        token returned by the server
      • cancelToken

        public io.reactivex.Observable<io.token.proto.common.token.TokenProtos.TokenOperationResult> cancelToken​(io.token.proto.common.token.TokenProtos.Token token)
        Cancels the token by signing it. The signature is persisted along with the token.
        Parameters:
        token - token to cancel
        Returns:
        result of cancel token
      • cancelTokenBlocking

        public io.token.proto.common.token.TokenProtos.TokenOperationResult cancelTokenBlocking​(io.token.proto.common.token.TokenProtos.Token token)
        Cancels the token by signing it. The signature is persisted along with the token.
        Parameters:
        token - token to cancel
        Returns:
        result of endorsed token
      • triggerBalanceStepUpNotification

        public io.reactivex.Observable<io.token.proto.common.notification.NotificationProtos.NotifyStatus> triggerBalanceStepUpNotification​(java.util.List<java.lang.String> accountIds)
        Trigger a step up notification for balance requests.
        Parameters:
        accountIds - list of account ids
        Returns:
        notification status
      • triggerBalanceStepUpNotificationBlocking

        public io.token.proto.common.notification.NotificationProtos.NotifyStatus triggerBalanceStepUpNotificationBlocking​(java.util.List<java.lang.String> accountIds)
        Trigger a step up notification for balance requests.
        Parameters:
        accountIds - list of account ids
        Returns:
        notification status
      • triggerTransactionStepUpNotification

        public io.reactivex.Observable<io.token.proto.common.notification.NotificationProtos.NotifyStatus> triggerTransactionStepUpNotification​(java.lang.String accountId)
        Trigger a step up notification for transaction requests.
        Parameters:
        accountId - account id
        Returns:
        notification status
      • triggerTransactionStepUpNotificationBlocking

        public io.token.proto.common.notification.NotificationProtos.NotifyStatus triggerTransactionStepUpNotificationBlocking​(java.lang.String accountId)
        Trigger a step up notification for transaction requests.
        Parameters:
        accountId - account id
        Returns:
        notification status
      • createTestBankAccount

        public io.reactivex.Observable<Account> createTestBankAccount​(double balance,
                                                                      java.lang.String currency)
        Creates a test bank account in a fake bank and links the account.
        Parameters:
        balance - account balance to set
        currency - currency code, e.g. "EUR"
        Returns:
        the linked account
      • createTestBankAccountBlocking

        public Account createTestBankAccountBlocking​(double balance,
                                                     java.lang.String currency)
        Creates a test bank account in a fake bank and links the account.
        Parameters:
        balance - account balance to set
        currency - currency code, e.g. "EUR"
        Returns:
        the linked account
      • verifyEidas

        public io.reactivex.Observable<io.token.proto.gateway.Gateway.VerifyEidasResponse> verifyEidas​(io.token.proto.common.eidas.EidasProtos.VerifyEidasPayload payload,
                                                                                                       java.lang.String signature)
        Verifies eIDAS alias with an eIDAS certificate, containing auth number equal to the value of the alias. Before making this call make sure that:
        • The member is under the realm of a bank (the one tpp tries to gain access to)
        • An eIDAS-type alias with the value equal to auth number of the TPP is added to the member
        • The realmId of the alias is equal to the member's realmId
        Parameters:
        payload - payload containing the member id and the base64 encoded eIDAS certificate
        signature - the payload signed with a private key corresponding to the certificate
        Returns:
        a result of the verification process
      • getEidasCertificateStatus

        public io.reactivex.Observable<io.token.proto.gateway.Gateway.GetEidasCertificateStatusResponse> getEidasCertificateStatus()
        Get status of the current eIDAS certificate along with the certificate itself, if present.
        Returns:
        eidas status and the eidas certificate, if any
      • getEidasVerificationStatus

        public io.reactivex.Observable<io.token.proto.gateway.Gateway.GetEidasVerificationStatusResponse> getEidasVerificationStatus​(java.lang.String verificationId)
        Retrieves an eIDAS verification status by verificationId.
        Parameters:
        verificationId - verification id
        Returns:
        a status of the verification operation together with the certificate and alias value
      • getBankAuthUrl

        public io.reactivex.Observable<java.lang.String> getBankAuthUrl​(java.lang.String bankId,
                                                                        java.lang.String tokenRequestId)
        Get url to bank authorization page for a token request.
        Parameters:
        bankId - bank ID
        tokenRequestId - token request ID
        Returns:
        url
      • getBankAuthUrlBlocking

        public java.lang.String getBankAuthUrlBlocking​(java.lang.String bankId,
                                                       java.lang.String tokenRequestId)
        Get url to bank authorization page for a token request.
        Parameters:
        bankId - bank ID
        tokenRequestId - token request ID
        Returns:
        url
      • onBankAuthCallback

        public io.reactivex.Observable<java.lang.String> onBankAuthCallback​(java.lang.String bankId,
                                                                            java.lang.String query)
        Forward the callback from the bank (after user authentication) to Token.
        Parameters:
        bankId - bank ID
        query - HTTP query string
        Returns:
        token request ID
      • onBankAuthCallbackBlocking

        public java.lang.String onBankAuthCallbackBlocking​(java.lang.String bankId,
                                                           java.lang.String query)
        Forward the callback from the bank (after user authentication) to Token.
        Parameters:
        bankId - bank ID
        query - HTTP query string
        Returns:
        token request ID
      • getExternalMetadata

        public io.reactivex.Observable<ExternalMetadata> getExternalMetadata​(java.lang.String tokenRequestId)
        Get the external metadata from the bank associated with a token request.
        Parameters:
        tokenRequestId - token request ID
        Returns:
        external metadata
      • getExternalMetadataBlocking

        public ExternalMetadata getExternalMetadataBlocking​(java.lang.String tokenRequestId)
        Get the external metadata from the bank associated with a token request.
        Parameters:
        tokenRequestId - token request ID
        Returns:
        external metadata
      • setWebhookConfig

        public io.reactivex.Completable setWebhookConfig​(io.token.proto.common.webhook.WebhookProtos.Webhook.Config config)
        Set a webhook config.
        Parameters:
        config - the webhook config
        Returns:
        completable
      • setWebhookConfigBlocking

        public void setWebhookConfigBlocking​(io.token.proto.common.webhook.WebhookProtos.Webhook.Config config)
        Set a webhook config.
        Parameters:
        config - the webhook config
      • getWebhookConfig

        public io.reactivex.Observable<io.token.proto.common.webhook.WebhookProtos.Webhook.Config> getWebhookConfig()
        Get the webhook config.
        Returns:
        config
      • getWebhookConfigBlocking

        public io.token.proto.common.webhook.WebhookProtos.Webhook.Config getWebhookConfigBlocking()
        Get the webhook config.
        Returns:
        config
      • deleteWebhookConfig

        public io.reactivex.Completable deleteWebhookConfig()
        delete the webhook config.
        Returns:
        completable
      • deleteWebhookConfigBlocking

        public void deleteWebhookConfigBlocking()
        delete the webhook config.
      • getRedirectUrls

        public io.reactivex.Observable<java.util.List<java.lang.String>> getRedirectUrls()
        Get all redirect URLs.
        Returns:
        redirect URLs
      • getRedirectUrlsBlocking

        public java.util.List<java.lang.String> getRedirectUrlsBlocking()
        Get all redirect URLs.
        Returns:
        redirect URLs
      • addRedirectUrls

        public io.reactivex.Completable addRedirectUrls​(java.util.List<java.lang.String> redirectUrls)
        Add redirect URLs.
        Parameters:
        redirectUrls - redirect URLs to add
        Returns:
        completable
      • addRedirectUrlsBlocking

        public void addRedirectUrlsBlocking​(java.util.List<java.lang.String> redirectUrls)
        Add redirect URLs.
        Parameters:
        redirectUrls - redirect URLs to add
      • removeRedirectUrls

        public io.reactivex.Completable removeRedirectUrls​(java.util.List<java.lang.String> redirectUrls)
        Remove redirect URLs.
        Parameters:
        redirectUrls - redirect URLs to remove
        Returns:
        completable
      • removeRedirectUrlsBlocking

        public void removeRedirectUrlsBlocking​(java.util.List<java.lang.String> redirectUrls)
        Remove redirect URLs.
        Parameters:
        redirectUrls - redirect URLs to remove