public class Transactor extends Object
| Constructor and Description |
|---|
Transactor(String apiUrl)
Transactor constructor.
|
Transactor(String apiUrl,
String chainID,
String companyBcid,
PrivateKey txSigner)
Transactor constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TxWrappers |
retrieveCertificates(String companyBcid,
String uuid,
int page,
int txPerPage)
fetches the API to find the corresponding txs and returns tx wrappers or an error.
|
KeyV1[] |
retrieveCompanyKeys(String companyBcid,
int page,
int txPerPage)
fetches the API and returns the list of keyV1 for a company or an error.
|
TxWrappers |
retrieveKeyCreateTxs(String companyBcid,
String uuid,
int page,
int txPerPage)
fetches the API to find the corresponding txs and returns tx wrappers or an error.
|
TxWrappers |
retrieveKeyRevokeTxs(String companyBcid,
String uuid,
int page,
int txPerPage)
fetches the API to find the corresponding txs and returns tx wrappers or an error.
|
TxWrapper |
retrieveLastCertificate(String companyBcid,
String uuid)
fetches the API to find the corresponding tx and return a tx wrapper.
|
TxWrappers |
retrieveSecrets(String companyBcid,
String uuid,
int page,
int txPerPage)
fetches the API to find the corresponding txs and returns tx wrappers.
|
TxWrappers |
retrieveTxs(String txCategory,
String companyBcid,
String uuid,
int page,
int txPerPage)
fetches the API to find the corresponding txs and returns tx wrappers or an error.
|
TxStatus |
sendCertificateEd25519V1(String uuid,
PublicKey signer,
byte[] signature)
creates a CertificateEd25519 (V1), wraps in a tx and sends it to the API.
|
TxStatus |
sendCertificateRawV1(String uuid,
byte[] value)
creates a CertificateRaw (V1), wraps in a tx and sends it to the API.
|
TxStatus |
sendKeyCreateV1(String uuid,
PublicKey publicKey,
String role)
creates a KeyCreate (V1) and sends it to the API.
|
TxStatus |
sendKeyRevokeV1(String uuid,
PublicKey publicKey)
creates a KeyRevoke (V1) and sends it to the API.
|
TxStatus |
sendSecretNaclBoxV1(String uuid,
PublicKey sender,
byte[] nonce,
byte[] content)
creates a SecretNaclBox (V1), wraps in a tx and sends it to the API.
|
TxStatus |
sendTx(TxData txData)
signs and sends a tx to the Api.
|
public Transactor(String apiUrl, String chainID, String companyBcid, PrivateKey txSigner)
public Transactor(String apiUrl)
public TxStatus sendCertificateRawV1(String uuid, byte[] value) throws ApiException, IOException, NoSuchAlgorithmException, InvalidKeyException, SignatureException, ClientException
public TxStatus sendCertificateEd25519V1(String uuid, PublicKey signer, byte[] signature) throws ApiException, IOException, NoSuchAlgorithmException, InvalidKeyException, SignatureException, ClientException
public TxStatus sendKeyCreateV1(String uuid, PublicKey publicKey, String role) throws ApiException, IOException, NoSuchAlgorithmException, InvalidKeyException, SignatureException, ClientException
public TxStatus sendKeyRevokeV1(String uuid, PublicKey publicKey) throws ApiException, IOException, NoSuchAlgorithmException, InvalidKeyException, SignatureException, ClientException
public TxStatus sendSecretNaclBoxV1(String uuid, PublicKey sender, byte[] nonce, byte[] content) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException, IOException, ApiException, ClientException
public TxStatus sendTx(TxData txData) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException, IOException, ApiException, ClientException
public TxWrapper retrieveLastCertificate(String companyBcid, String uuid) throws IOException, ApiException
IOExceptionApiExceptionpublic TxWrappers retrieveCertificates(String companyBcid, String uuid, int page, int txPerPage) throws IOException, ApiException
IOExceptionApiExceptionpublic TxWrappers retrieveKeyCreateTxs(String companyBcid, String uuid, int page, int txPerPage) throws IOException, ApiException
IOExceptionApiExceptionpublic TxWrappers retrieveKeyRevokeTxs(String companyBcid, String uuid, int page, int txPerPage) throws IOException, ApiException
IOExceptionApiExceptionpublic KeyV1[] retrieveCompanyKeys(String companyBcid, int page, int txPerPage) throws IOException, ApiException
IOExceptionApiExceptionpublic TxWrappers retrieveSecrets(String companyBcid, String uuid, int page, int txPerPage) throws IOException, ApiException
IOExceptionApiExceptionpublic TxWrappers retrieveTxs(String txCategory, String companyBcid, String uuid, int page, int txPerPage) throws IOException, ApiException
IOExceptionApiExceptionCopyright © 2020 Transchain. All rights reserved.