public class Cosmian extends Object
| Constructor and Description |
|---|
Cosmian(String server_url,
Optional<String> api_key)
Instantiate a new Cosmian Server REST Client with DEFAULT_CONNECT_TIMEOUT and DEFAULT_READ_TIMEOUT
|
| Modifier and Type | Method and Description |
|---|---|
KmsClient |
abe()
Access to the ABE (Attribute Based Encryption) endpoints
|
static byte[] |
concat(byte[] a,
byte[] b)
Concat 2 byte-arrays
|
static byte[] |
hex_decode(String hex_encoded_string)
Decode an hex encoded String to bytes
|
static String |
hex_encode(byte[] bytes)
Hex Encode an array of bytes
|
Kmip |
kmip()
Access to the KMIP endpoints
|
RestClient |
rest()
Access to the REST client
|
public Cosmian(String server_url, Optional<String> api_key)
server_url - the REST Server URL e.g. http://localhost:9000api_key - the Cosmian API KEYRestClientpublic RestClient rest()
RestClientpublic Kmip kmip()
public KmsClient abe()
public static String hex_encode(byte[] bytes)
bytes - the bytes to encodepublic static byte[] hex_decode(String hex_encoded_string) throws CloudproofException
hex_encoded_string - the hex encoded StringCloudproofException - if the hex String is invalidpublic static byte[] concat(byte[] a,
byte[] b)
a - first byte arrayb - second byte arrayCopyright © 2022. All rights reserved.