All URIs are relative to http://localhost:9000
Text decrypt(text)
Decrypts the given string
// Import classes:
import io.github.cloudiator.rest.ApiClient;
import io.github.cloudiator.rest.ApiException;
import io.github.cloudiator.rest.Configuration;
import io.github.cloudiator.rest.auth.*;
import io.github.cloudiator.rest.models.*;
import io.github.cloudiator.rest.api.SecurityApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:9000");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
SecurityApi apiInstance = new SecurityApi(defaultClient);
String text = "text_example"; // String | Text to decrypt
try {
Text result = apiInstance.decrypt(text);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SecurityApi#decrypt");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name |
Type |
Description |
Notes |
text |
String |
Text to decrypt |
|
Text
ApiKeyAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Status code |
Description |
Response headers |
200 |
OK |
- |
deleteSecure(key)
// Import classes:
import io.github.cloudiator.rest.ApiClient;
import io.github.cloudiator.rest.ApiException;
import io.github.cloudiator.rest.Configuration;
import io.github.cloudiator.rest.auth.*;
import io.github.cloudiator.rest.models.*;
import io.github.cloudiator.rest.api.SecurityApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:9000");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
SecurityApi apiInstance = new SecurityApi(defaultClient);
String key = "key_example"; // String | Key of the stored variable
try {
apiInstance.deleteSecure(key);
} catch (ApiException e) {
System.err.println("Exception when calling SecurityApi#deleteSecure");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name |
Type |
Description |
Notes |
key |
String |
Key of the stored variable |
|
null (empty response body)
ApiKeyAuth
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
Status code |
Description |
Response headers |
200 |
OK |
- |
Text encrypt(text)
Encrypts the given string
// Import classes:
import io.github.cloudiator.rest.ApiClient;
import io.github.cloudiator.rest.ApiException;
import io.github.cloudiator.rest.Configuration;
import io.github.cloudiator.rest.auth.*;
import io.github.cloudiator.rest.models.*;
import io.github.cloudiator.rest.api.SecurityApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:9000");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
SecurityApi apiInstance = new SecurityApi(defaultClient);
String text = "text_example"; // String | Text to encrypt
try {
Text result = apiInstance.encrypt(text);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SecurityApi#encrypt");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name |
Type |
Description |
Notes |
text |
String |
Text to encrypt |
|
Text
ApiKeyAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Status code |
Description |
Response headers |
200 |
OK |
- |
Text retrieveSecure(key)
Retrieves the stored value.
// Import classes:
import io.github.cloudiator.rest.ApiClient;
import io.github.cloudiator.rest.ApiException;
import io.github.cloudiator.rest.Configuration;
import io.github.cloudiator.rest.auth.*;
import io.github.cloudiator.rest.models.*;
import io.github.cloudiator.rest.api.SecurityApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:9000");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
SecurityApi apiInstance = new SecurityApi(defaultClient);
String key = "key_example"; // String | Key of the stored variable
try {
Text result = apiInstance.retrieveSecure(key);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SecurityApi#retrieveSecure");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name |
Type |
Description |
Notes |
key |
String |
Key of the stored variable |
|
Text
ApiKeyAuth
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Status code |
Description |
Response headers |
200 |
OK |
- |
Text storeSecure(key, value)
// Import classes:
import io.github.cloudiator.rest.ApiClient;
import io.github.cloudiator.rest.ApiException;
import io.github.cloudiator.rest.Configuration;
import io.github.cloudiator.rest.auth.*;
import io.github.cloudiator.rest.models.*;
import io.github.cloudiator.rest.api.SecurityApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:9000");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
SecurityApi apiInstance = new SecurityApi(defaultClient);
String key = "key_example"; // String | Key of the stored variable
Text value = new Text(); // Text | Value of the stored variable
try {
Text result = apiInstance.storeSecure(key, value);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SecurityApi#storeSecure");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name |
Type |
Description |
Notes |
key |
String |
Key of the stored variable |
|
value |
Text |
Value of the stored variable |
|
Text
ApiKeyAuth
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Status code |
Description |
Response headers |
200 |
OK |
- |