public class Member extends java.lang.Object implements Representable
Constructor and Description |
---|
Member(MemberAsync async)
Creates an instance with a
MemberAsync all calls are delegated to. |
Modifier and Type | Method and Description |
---|---|
io.token.proto.common.member.MemberProtos.AddressRecord |
addAddress(java.lang.String name,
io.token.proto.common.address.AddressProtos.Address address)
Creates a new member address record.
|
void |
addAlias(io.token.proto.common.alias.AliasProtos.Alias alias)
Adds a new alias for the member.
|
void |
addAliases(java.util.List<io.token.proto.common.alias.AliasProtos.Alias> aliases)
Adds new aliases for the member.
|
io.token.proto.common.member.MemberProtos.Member |
addRecoveryRule(io.token.proto.common.member.MemberProtos.RecoveryRule recoveryRule)
Adds the recovery rule.
|
void |
addTrustedBeneficiary(java.lang.String memberId)
Adds a trusted beneficiary for whom the SCA will be skipped.
|
java.util.List<io.token.proto.common.alias.AliasProtos.Alias> |
aliases()
Gets a list of all aliases owned by the member.
|
void |
applySca(java.util.List<java.lang.String> accountIds)
Apply SCA for the given list of account IDs.
|
void |
approveKey(io.token.security.keystore.SecretKeyPair key,
io.token.proto.common.security.SecurityProtos.Key.Level level)
Approves a secret key owned by this member.
|
void |
approveKey(io.token.proto.common.security.SecurityProtos.Key key)
Approves a public key owned by this member.
|
void |
approveKeys(java.util.List<io.token.proto.common.security.SecurityProtos.Key> keys)
Approves public keys owned by this member.
|
MemberAsync |
async()
Gets a
MemberAsync delegate. |
io.token.proto.common.security.SecurityProtos.Signature |
authorizeRecovery(io.token.proto.common.member.MemberProtos.MemberRecoveryOperation.Authorization authorization)
Authorizes recovery as a trusted agent.
|
io.token.proto.common.token.TokenProtos.TokenOperationResult |
cancelToken(io.token.proto.common.token.TokenProtos.Token token)
Cancels the token by signing it.
|
void |
clearAccessToken()
Deprecated.
|
void |
clearSecurityMetadata()
Clears security metadata.
|
io.token.proto.common.token.TokenProtos.Token |
createAccessToken(AccessTokenBuilder accessTokenBuilder)
Creates an access token built from a given
AccessTokenBuilder . |
io.token.proto.common.token.TokenProtos.Token |
createAccessToken(AccessTokenBuilder accessTokenBuilder,
java.lang.String tokenRequestId)
Creates an access token built from a given
AccessTokenBuilder . |
Account |
createAndLinkTestBankAccount(double balance,
java.lang.String currency)
Creates a test bank account in a fake bank and links the account.
|
io.token.proto.common.blob.BlobProtos.Attachment |
createBlob(java.lang.String ownerId,
java.lang.String type,
java.lang.String name,
byte[] data)
Creates and uploads a blob.
|
io.token.proto.common.blob.BlobProtos.Attachment |
createBlob(java.lang.String ownerId,
java.lang.String type,
java.lang.String name,
byte[] data,
io.token.proto.common.blob.BlobProtos.Blob.AccessMode accessMode)
Creates and uploads a blob.
|
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.
|
io.token.proto.banklink.Banklink.OauthBankAuthorization |
createTestBankAccount(double balance,
java.lang.String currency)
Creates a test bank account in a fake bank.
|
TransferTokenBuilder |
createTransferToken(double amount,
java.lang.String currency)
Creates a new transfer token builder.
|
void |
deleteAddress(java.lang.String addressId)
Deletes a member address by its id.
|
void |
deleteMember()
Delete the member.
|
io.token.proto.common.token.TokenProtos.TokenOperationResult |
endorseToken(io.token.proto.common.token.TokenProtos.Token token,
io.token.proto.common.security.SecurityProtos.Key.Level keyLevel)
Endorses the token by signing it.
|
boolean |
equals(java.lang.Object obj) |
io.token.proto.common.alias.AliasProtos.Alias |
firstAlias()
Gets user first alias.
|
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. |
io.token.proto.PagedList<io.token.proto.common.token.TokenProtos.Token,java.lang.String> |
getAccessTokens(java.lang.String offset,
int limit)
Looks up tokens owned by the member.
|
Account |
getAccount(java.lang.String accountId)
Looks up a funding bank account linked to Token.
|
java.util.List<Account> |
getAccounts()
Looks up funding bank accounts linked to Token.
|
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.member.MemberProtos.AddressRecord |
getAddress(java.lang.String addressId)
Looks up an address by id.
|
java.util.List<io.token.proto.common.member.MemberProtos.AddressRecord> |
getAddresses()
Looks up member addresses.
|
io.token.proto.common.money.MoneyProtos.Money |
getAvailableBalance(java.lang.String accountId,
io.token.proto.common.security.SecurityProtos.Key.Level keyLevel)
Looks up account available balance.
|
io.token.proto.common.transaction.TransactionProtos.Balance |
getBalance(java.lang.String accountId,
io.token.proto.common.security.SecurityProtos.Key.Level keyLevel)
Looks up account balance.
|
java.util.List<io.token.proto.common.transaction.TransactionProtos.Balance> |
getBalances(java.util.List<java.lang.String> accountIds,
io.token.proto.common.security.SecurityProtos.Key.Level keyLevel)
Looks up balances for a list of accounts.
|
io.token.proto.common.bank.BankProtos.BankInfo |
getBankInfo(java.lang.String bankId)
Returns linking information for the specified bank id.
|
io.token.proto.common.blob.BlobProtos.Blob |
getBlob(java.lang.String blobId)
Gets a blob from the server.
|
io.token.proto.common.money.MoneyProtos.Money |
getCurrentBalance(java.lang.String accountId,
io.token.proto.common.security.SecurityProtos.Key.Level keyLevel)
Looks up account current balance.
|
Account |
getDefaultAccount()
Gets the default bank account.
|
java.lang.String |
getDefaultAgent()
Gets the member id of the default recovery agent.
|
io.token.proto.common.notification.NotificationProtos.Notification |
getNotification(java.lang.String notificationId)
Gets a notification by id.
|
io.token.proto.PagedList<io.token.proto.common.notification.NotificationProtos.Notification,java.lang.String> |
getNotifications(java.lang.String offset,
int limit)
Gets a list of the member's notifications.
|
java.util.List<io.token.proto.common.member.MemberProtos.Device> |
getPairedDevices()
Get list of paired devices.
|
io.token.proto.common.member.MemberProtos.Profile |
getProfile(java.lang.String memberId)
Gets a member's public profile.
|
io.token.proto.common.blob.BlobProtos.Blob |
getProfilePicture(java.lang.String memberId,
io.token.proto.common.member.MemberProtos.ProfilePictureSize size)
Gets a member's public profile picture.
|
io.token.proto.common.member.MemberProtos.ReceiptContact |
getReceiptContact()
Gets the member's receipt contact.
|
io.token.proto.common.subscriber.SubscriberProtos.Subscriber |
getSubscriber(java.lang.String subscriberId)
Gets a subscriber by Id.
|
java.util.List<io.token.proto.common.subscriber.SubscriberProtos.Subscriber> |
getSubscribers()
Gets a list of all subscribers.
|
io.token.proto.common.token.TokenProtos.Token |
getToken(java.lang.String tokenId)
Looks up an existing token.
|
io.token.proto.common.blob.BlobProtos.Blob |
getTokenBlob(java.lang.String tokenId,
java.lang.String blobId)
Retrieves a blob that is attached to a token.
|
io.token.proto.common.transaction.TransactionProtos.Transaction |
getTransaction(java.lang.String accountId,
java.lang.String transactionId,
io.token.proto.common.security.SecurityProtos.Key.Level keyLevel)
Looks up an existing transaction for a given account.
|
io.token.proto.PagedList<io.token.proto.common.transaction.TransactionProtos.Transaction,java.lang.String> |
getTransactions(java.lang.String accountId,
java.lang.String offset,
int limit,
io.token.proto.common.security.SecurityProtos.Key.Level keyLevel)
Looks up transactions for a given account.
|
io.token.proto.common.transfer.TransferProtos.Transfer |
getTransfer(java.lang.String transferId)
Looks up an existing token transfer.
|
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.token.TokenProtos.Token,java.lang.String> |
getTransferTokens(java.lang.String offset,
int limit)
Looks up tokens owned by the member.
|
java.util.List<io.token.proto.common.member.MemberProtos.TrustedBeneficiary> |
getTrustedBeneficiaries()
Gets a list of all trusted beneficiaries.
|
int |
hashCode() |
java.util.List<Account> |
initiateAccountLinking(java.lang.String bankId)
Links accounts by navigating browser through bank authorization pages.
|
java.util.List<io.token.proto.common.security.SecurityProtos.Key> |
keys()
Gets all public keys for this member.
|
java.lang.String |
lastHash()
Gets the last hash.
|
java.util.List<Account> |
linkAccounts(io.token.proto.banklink.Banklink.BankAuthorization authorization)
Links a funding bank account to Token and returns it to the caller.
|
java.util.List<Account> |
linkAccounts(java.lang.String bankId,
java.lang.String accessToken)
Links funding bank accounts to Token and returns them to the caller.
|
java.lang.String |
memberId()
Gets member ID.
|
io.token.proto.common.transfer.TransferProtos.Transfer |
redeemToken(io.token.proto.common.token.TokenProtos.Token token)
Redeems a transfer token.
|
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.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)
Redeems a transfer token.
|
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)
Redeems a transfer token.
|
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)
Redeems a transfer token.
|
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 |
redeemToken(io.token.proto.common.token.TokenProtos.Token token,
io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint destination)
Redeems a transfer token.
|
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)
Redeems a transfer token.
|
void |
removeAlias(io.token.proto.common.alias.AliasProtos.Alias alias)
Removes an alias for the member.
|
void |
removeAliases(java.util.List<io.token.proto.common.alias.AliasProtos.Alias> aliases)
Removes aliases for the member.
|
void |
removeKey(java.lang.String keyId)
Removes a public key owned by this member.
|
void |
removeKeys(java.util.List<java.lang.String> keyIds)
Removes public keys owned by this member.
|
void |
removeNonStoredKeys()
Removes all public keys that do not have a corresponding private key stored on
the current device from tke member.
|
void |
removeTrustedBeneficiary(java.lang.String memberId)
Removes a trusted beneficiary.
|
io.token.proto.common.token.TokenProtos.TokenOperationResult |
replaceAccessToken(io.token.proto.common.token.TokenProtos.Token tokenToCancel,
AccessTokenBuilder tokenToCreate)
Cancels the existing access token, creates a replacement and optionally endorses it.
|
io.token.proto.common.token.TokenProtos.TokenOperationResult |
replaceAndEndorseAccessToken(io.token.proto.common.token.TokenProtos.Token tokenToCancel,
AccessTokenBuilder tokenToCreate)
|
java.util.List<io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint> |
resolveTransferDestinations(java.lang.String accountId)
Resolves transfer destinations for the given account ID.
|
java.lang.String |
retryVerification(io.token.proto.common.alias.AliasProtos.Alias alias)
Retries alias verification.
|
io.token.proto.common.member.MemberProtos.Profile |
setProfile(io.token.proto.common.member.MemberProtos.Profile profile)
Replaces the authenticated member's public profile.
|
void |
setProfilePicture(java.lang.String type,
byte[] data)
Replaces auth'd member's public profile picture.
|
void |
setReceiptContact(io.token.proto.common.member.MemberProtos.ReceiptContact receiptContact)
Replaces the member's receipt contact.
|
void |
setSecurityMetadata(io.token.proto.common.security.SecurityProtos.SecurityMetadata securityMetadata)
Sets security metadata included in all requests.
|
io.token.proto.common.security.SecurityProtos.Signature |
signTokenRequestState(java.lang.String tokenRequestId,
java.lang.String tokenId,
java.lang.String state)
Sign with a Token signature a token request state payload.
|
java.lang.String |
storeTokenRequest(TokenRequest tokenRequest)
Stores a token request to be retrieved later (possibly by another member).
|
io.token.proto.common.subscriber.SubscriberProtos.Subscriber |
subscribeToNotifications(java.lang.String handler)
Subscribes a device to receive push notifications.
|
io.token.proto.common.subscriber.SubscriberProtos.Subscriber |
subscribeToNotifications(java.lang.String handler,
java.util.Map<java.lang.String,java.lang.String> handlerInstructions)
Subscribes a device to receive push notifications.
|
java.lang.String |
toString() |
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 |
triggerTokenStepUpNotification(java.lang.String tokenId)
Trigger a step up notification for tokens.
|
io.token.proto.common.notification.NotificationProtos.NotifyStatus |
triggerTransactionStepUpNotification(java.lang.String accountId)
Trigger a step up notification for transaction requests.
|
void |
unlinkAccounts(java.util.List<java.lang.String> accountIds)
Unlinks bank accounts previously linked via linkAccounts call.
|
void |
unsubscribeFromNotifications(java.lang.String subscriberId)
Removes a subscriber by Id.
|
void |
useAccessToken(java.lang.String accessTokenId)
Deprecated.
|
void |
useAccessToken(java.lang.String accessTokenId,
boolean customerInitiated)
Deprecated.
|
void |
useDefaultRecoveryRule()
Set Token as the recovery agent.
|
void |
verifyAffiliate(java.lang.String memberId)
Verifies an affiliated TPP.
|
void |
verifyAlias(java.lang.String verificationId,
java.lang.String code)
Verifies a given alias.
|
public Member(MemberAsync async)
MemberAsync
all calls are delegated to.async
- real implementation that the calls are delegated topublic MemberAsync async()
MemberAsync
delegate.public java.lang.String memberId()
public java.lang.String lastHash()
public io.token.proto.common.alias.AliasProtos.Alias firstAlias()
public java.util.List<io.token.proto.common.alias.AliasProtos.Alias> aliases()
public java.util.List<io.token.proto.common.security.SecurityProtos.Key> keys()
@Deprecated public void useAccessToken(java.lang.String accessTokenId)
accessTokenId
- the access token id@Deprecated public void useAccessToken(java.lang.String accessTokenId, boolean customerInitiated)
accessTokenId
- the access token idcustomerInitiated
- whether the request is customer initiated@Deprecated public void clearAccessToken()
public Representable forAccessToken(java.lang.String tokenId)
Representable
that acts as another member using the access token
that was granted by that member.tokenId
- the token idRepresentable
public Representable forAccessToken(java.lang.String tokenId, boolean customerInitiated)
Representable
that acts as another member using the access token
that was granted by that member.tokenId
- the token idcustomerInitiated
- whether the call is initiated by the customerRepresentable
public void addAlias(io.token.proto.common.alias.AliasProtos.Alias alias)
alias
- alias, e.g. 'john', must be uniquepublic void addAliases(java.util.List<io.token.proto.common.alias.AliasProtos.Alias> aliases)
aliases
- aliases, e.g. 'john', must be uniquepublic java.lang.String retryVerification(io.token.proto.common.alias.AliasProtos.Alias alias)
alias
- the alias to be verifiedpublic io.token.proto.common.member.MemberProtos.Member addRecoveryRule(io.token.proto.common.member.MemberProtos.RecoveryRule recoveryRule)
recoveryRule
- the recovery rulepublic void useDefaultRecoveryRule()
public io.token.proto.common.security.SecurityProtos.Signature authorizeRecovery(io.token.proto.common.member.MemberProtos.MemberRecoveryOperation.Authorization authorization)
authorization
- the authorizationpublic java.lang.String getDefaultAgent()
public void verifyAlias(java.lang.String verificationId, java.lang.String code)
verificationId
- the verification idcode
- the codepublic void removeAlias(io.token.proto.common.alias.AliasProtos.Alias alias)
alias
- alias, e.g. 'john'public void removeAliases(java.util.List<io.token.proto.common.alias.AliasProtos.Alias> aliases)
aliases
- aliases, e.g. 'john'public void approveKey(io.token.security.keystore.SecretKeyPair key, io.token.proto.common.security.SecurityProtos.Key.Level level)
key
- key to add to the approved listlevel
- key privilege levelpublic void approveKey(io.token.proto.common.security.SecurityProtos.Key key)
key
- key to add to the approved listpublic void approveKeys(java.util.List<io.token.proto.common.security.SecurityProtos.Key> keys)
keys
- keys to add to the approved listpublic void removeKey(java.lang.String keyId)
keyId
- key ID of the key to removepublic void removeKeys(java.util.List<java.lang.String> keyIds)
keyIds
- key IDs of the keys to removepublic void removeNonStoredKeys()
public io.token.proto.common.subscriber.SubscriberProtos.Subscriber subscribeToNotifications(java.lang.String handler)
handler
- specify the handler of the notificationspublic io.token.proto.common.subscriber.SubscriberProtos.Subscriber subscribeToNotifications(java.lang.String handler, java.util.Map<java.lang.String,java.lang.String> handlerInstructions)
handler
- specify the handler of the notificationshandlerInstructions
- map of instructions for the handlerpublic java.util.List<io.token.proto.common.subscriber.SubscriberProtos.Subscriber> getSubscribers()
public io.token.proto.common.subscriber.SubscriberProtos.Subscriber getSubscriber(java.lang.String subscriberId)
subscriberId
- subscriberIdpublic void unsubscribeFromNotifications(java.lang.String subscriberId)
subscriberId
- subscriberIdpublic io.token.proto.PagedList<io.token.proto.common.notification.NotificationProtos.Notification,java.lang.String> getNotifications(@Nullable java.lang.String offset, int limit)
offset
- offset to startlimit
- how many notifications to getpublic io.token.proto.common.notification.NotificationProtos.Notification getNotification(java.lang.String notificationId)
notificationId
- Id of the notificationpublic java.util.List<Account> initiateAccountLinking(java.lang.String bankId)
bankId
- the bank idBankAuthorizationRequiredException
- if bank authorization payload
is required to link accountspublic java.util.List<Account> linkAccounts(io.token.proto.banklink.Banklink.BankAuthorization authorization)
authorization
- an authorization to accounts, from the bankpublic java.util.List<Account> linkAccounts(java.lang.String bankId, java.lang.String accessToken)
bankId
- bank idaccessToken
- OAuth access tokenBankAuthorizationRequiredException
- if bank authorization payload
is required to link accountspublic void unlinkAccounts(java.util.List<java.lang.String> accountIds)
accountIds
- list of account ids to unlinkpublic java.util.List<Account> getAccounts()
getAccounts
in interface Representable
public Account getDefaultAccount()
public Account getAccount(java.lang.String accountId)
getAccount
in interface Representable
accountId
- account idpublic io.token.proto.common.transfer.TransferProtos.Transfer getTransfer(java.lang.String transferId)
transferId
- ID of the transfer recordpublic 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)
offset
- optional offset to start atlimit
- max number of records to returntokenId
- optional token id to restrict the searchpublic io.token.proto.common.member.MemberProtos.AddressRecord addAddress(java.lang.String name, io.token.proto.common.address.AddressProtos.Address address)
name
- the name of the addressaddress
- the addresspublic io.token.proto.common.member.MemberProtos.AddressRecord getAddress(java.lang.String addressId)
getAddress
in interface Representable
addressId
- the address idpublic java.util.List<io.token.proto.common.member.MemberProtos.AddressRecord> getAddresses()
getAddresses
in interface Representable
public void deleteAddress(java.lang.String addressId)
addressId
- the id of the addresspublic io.token.proto.common.member.MemberProtos.Profile setProfile(io.token.proto.common.member.MemberProtos.Profile profile)
profile
- Profile to setpublic io.token.proto.common.member.MemberProtos.Profile getProfile(java.lang.String memberId)
memberId
- member ID of member whose profile we wantpublic void setProfilePicture(java.lang.String type, byte[] data)
type
- MIME type of picturedata
- image datapublic io.token.proto.common.blob.BlobProtos.Blob getProfilePicture(java.lang.String memberId, io.token.proto.common.member.MemberProtos.ProfilePictureSize size)
memberId
- member ID of member whose profile we wantsize
- Size category desired (small/medium/large/original)public void setReceiptContact(io.token.proto.common.member.MemberProtos.ReceiptContact receiptContact)
receiptContact
- receipt contact to setpublic io.token.proto.common.member.MemberProtos.ReceiptContact getReceiptContact()
public java.lang.String storeTokenRequest(TokenRequest tokenRequest)
tokenRequest
- token requestpublic TransferTokenBuilder createTransferToken(double amount, java.lang.String currency)
amount
- transfer amountcurrency
- currency code, e.g. "USD"public io.token.proto.common.token.TokenProtos.Token createAccessToken(AccessTokenBuilder accessTokenBuilder)
AccessTokenBuilder
.accessTokenBuilder
- an AccessTokenBuilder
to create access token frompublic io.token.proto.common.token.TokenProtos.Token createAccessToken(AccessTokenBuilder accessTokenBuilder, java.lang.String tokenRequestId)
AccessTokenBuilder
.accessTokenBuilder
- an AccessTokenBuilder
to create access token fromtokenRequestId
- toknpublic io.token.proto.common.token.TokenProtos.Token getToken(java.lang.String tokenId)
tokenId
- token idpublic io.token.proto.common.token.TokenProtos.Token getActiveAccessToken(java.lang.String toMemberId)
toMemberId
- beneficiary of the active access tokenpublic io.token.proto.PagedList<io.token.proto.common.token.TokenProtos.Token,java.lang.String> getTransferTokens(@Nullable java.lang.String offset, int limit)
offset
- optional offset to start atlimit
- max number of records to returnpublic io.token.proto.PagedList<io.token.proto.common.token.TokenProtos.Token,java.lang.String> getAccessTokens(@Nullable java.lang.String offset, int limit)
offset
- optional offset offset to start atlimit
- max number of records to returnpublic io.token.proto.common.token.TokenProtos.TokenOperationResult endorseToken(io.token.proto.common.token.TokenProtos.Token token, io.token.proto.common.security.SecurityProtos.Key.Level keyLevel)
If the key's level is too low, the result's status is MORE_SIGNATURES_NEEDED and the system pushes a notification to the member prompting them to use a higher-privilege key.
token
- token to endorsekeyLevel
- key level to be used to endorse the tokenpublic io.token.proto.common.token.TokenProtos.TokenOperationResult cancelToken(io.token.proto.common.token.TokenProtos.Token token)
token
- token to cancelpublic io.token.proto.common.token.TokenProtos.TokenOperationResult replaceAccessToken(io.token.proto.common.token.TokenProtos.Token tokenToCancel, AccessTokenBuilder tokenToCreate)
tokenToCancel
- old token to canceltokenToCreate
- an AccessTokenBuilder
to create new token from@Deprecated public io.token.proto.common.token.TokenProtos.TokenOperationResult replaceAndEndorseAccessToken(io.token.proto.common.token.TokenProtos.Token tokenToCancel, AccessTokenBuilder tokenToCreate)
replaceAccessToken(io.token.proto.common.token.TokenProtos.Token, io.token.AccessTokenBuilder)
and endorseToken(io.token.proto.common.token.TokenProtos.Token, io.token.proto.common.security.SecurityProtos.Key.Level)
insteadtokenToCancel
- old token to canceltokenToCreate
- an AccessTokenBuilder
to create new token frompublic io.token.proto.common.transfer.TransferProtos.Transfer redeemToken(io.token.proto.common.token.TokenProtos.Token token)
token
- transfer token to redeempublic io.token.proto.common.transfer.TransferProtos.Transfer redeemToken(io.token.proto.common.token.TokenProtos.Token token, java.lang.String refId)
token
- transfer token to redeemrefId
- transfer reference idpublic io.token.proto.common.transfer.TransferProtos.Transfer redeemToken(io.token.proto.common.token.TokenProtos.Token token, io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint destination)
token
- transfer token to redeemdestination
- transfer instruction destinationpublic 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)
token
- transfer token to redeemdestination
- transfer instruction destinationrefId
- transfer reference idpublic 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)
token
- transfer token to redeemamount
- transfer amountcurrency
- transfer currency code, e.g. "EUR"description
- transfer descriptionpublic 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)
token
- transfer token to redeemamount
- transfer amountcurrency
- transfer currency code, e.g. "EUR"destination
- transfer instruction destinationpublic 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)
token
- transfer token to redeemamount
- transfer amountcurrency
- transfer currency code, e.g. "EUR"description
- transfer descriptiondestination
- transfer instruction destinationpublic 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)
token
- transfer token to redeemamount
- transfer amountcurrency
- transfer currency code, e.g. "EUR"description
- transfer descriptiondestination
- transfer instruction destinationrefId
- transfer reference idpublic io.token.proto.common.transaction.TransactionProtos.Transaction getTransaction(java.lang.String accountId, java.lang.String transactionId, io.token.proto.common.security.SecurityProtos.Key.Level keyLevel)
getTransaction
in interface Representable
accountId
- the account idtransactionId
- ID of the transactionkeyLevel
- key levelpublic io.token.proto.PagedList<io.token.proto.common.transaction.TransactionProtos.Transaction,java.lang.String> getTransactions(java.lang.String accountId, @Nullable java.lang.String offset, int limit, io.token.proto.common.security.SecurityProtos.Key.Level keyLevel)
getTransactions
in interface Representable
accountId
- the account idoffset
- optional offset to start atlimit
- max number of records to returnkeyLevel
- key levelpublic io.token.proto.common.transaction.TransactionProtos.Balance getBalance(java.lang.String accountId, io.token.proto.common.security.SecurityProtos.Key.Level keyLevel)
getBalance
in interface Representable
accountId
- account idkeyLevel
- key levelpublic io.token.proto.common.money.MoneyProtos.Money getAvailableBalance(java.lang.String accountId, io.token.proto.common.security.SecurityProtos.Key.Level keyLevel)
accountId
- account idkeyLevel
- key levelpublic io.token.proto.common.money.MoneyProtos.Money getCurrentBalance(java.lang.String accountId, io.token.proto.common.security.SecurityProtos.Key.Level keyLevel)
accountId
- account idkeyLevel
- key levelpublic java.util.List<io.token.proto.common.transaction.TransactionProtos.Balance> getBalances(java.util.List<java.lang.String> accountIds, io.token.proto.common.security.SecurityProtos.Key.Level keyLevel)
getBalances
in interface Representable
accountIds
- list of account idskeyLevel
- key levelpublic io.token.proto.common.bank.BankProtos.BankInfo getBankInfo(java.lang.String bankId)
bankId
- the bank idpublic io.token.proto.common.blob.BlobProtos.Attachment createBlob(java.lang.String ownerId, java.lang.String type, java.lang.String name, byte[] data, io.token.proto.common.blob.BlobProtos.Blob.AccessMode accessMode)
ownerId
- id of the owner of the blobtype
- MIME type of the filename
- namedata
- file dataaccessMode
- Default or publicpublic io.token.proto.common.blob.BlobProtos.Attachment createBlob(java.lang.String ownerId, java.lang.String type, java.lang.String name, byte[] data)
ownerId
- id of the owner of the blobtype
- MIME type of the filename
- namedata
- file datapublic io.token.proto.common.blob.BlobProtos.Blob getBlob(java.lang.String blobId)
blobId
- blob Idpublic io.token.proto.common.blob.BlobProtos.Blob getTokenBlob(java.lang.String tokenId, java.lang.String blobId)
tokenId
- id of the tokenblobId
- id of the blobpublic Account createAndLinkTestBankAccount(double balance, java.lang.String currency)
balance
- account balance to setcurrency
- currency code, e.g. "EUR"public io.token.proto.banklink.Banklink.OauthBankAuthorization createTestBankAccount(double balance, java.lang.String currency)
balance
- account balance to setcurrency
- currency code, e.g. "EUR"public io.token.proto.common.notification.NotificationProtos.NotifyStatus triggerTokenStepUpNotification(java.lang.String tokenId)
tokenId
- token idpublic io.token.proto.common.notification.NotificationProtos.NotifyStatus triggerBalanceStepUpNotification(java.util.List<java.lang.String> accountIds)
accountIds
- list of account idspublic io.token.proto.common.notification.NotificationProtos.NotifyStatus triggerTransactionStepUpNotification(java.lang.String accountId)
accountId
- account idpublic void applySca(java.util.List<java.lang.String> accountIds)
accountIds
- list of account idspublic io.token.proto.common.security.SecurityProtos.Signature signTokenRequestState(java.lang.String tokenRequestId, java.lang.String tokenId, java.lang.String state)
tokenRequestId
- token request idtokenId
- token idstate
- statepublic java.util.List<io.token.proto.common.member.MemberProtos.Device> getPairedDevices()
public void deleteMember()
public void verifyAffiliate(java.lang.String memberId)
memberId
- member ID of the TPP to verifypublic java.util.List<io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint> resolveTransferDestinations(java.lang.String accountId)
resolveTransferDestinations
in interface Representable
accountId
- account IDpublic void addTrustedBeneficiary(java.lang.String memberId)
memberId
- the member id of the beneficiarypublic void removeTrustedBeneficiary(java.lang.String memberId)
memberId
- the member id of the beneficiarypublic java.util.List<io.token.proto.common.member.MemberProtos.TrustedBeneficiary> getTrustedBeneficiaries()
public 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)
logo
- logocolors
- map of ARGB colors #AARRGGBBconsentText
- consent textname
- display nameappName
- corresponding app namepublic void setSecurityMetadata(io.token.proto.common.security.SecurityProtos.SecurityMetadata securityMetadata)
securityMetadata
- security metadatapublic void clearSecurityMetadata()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object