All URIs are relative to https://SSC:8080/ssc/api/v1
Method | HTTP request | Description |
---|---|---|
createAuthToken | POST /tokens | create |
deleteAuthToken | DELETE /tokens/{id} | delete |
listAuthToken | GET /tokens | list |
multiDeleteAuthToken | DELETE /tokens | Revoke authentication tokens using ONE of two choices: (1) all tokens owned by the requesting user, OR (2) list of token ids. |
revokeAuthToken | POST /tokens/action/revoke | Revoke authentication tokens by value |
updateAuthToken | PUT /tokens/{id} | update |
ApiResultAuthenticationToken createAuthToken(authToken)
create
// Import classes:
//import com.fortify.ssc.restclient.ApiClient;
//import com.fortify.ssc.restclient.ApiException;
//import com.fortify.ssc.restclient.Configuration;
//import com.fortify.ssc.restclient.auth.*;
//import com.fortify.ssc.restclient.api.AuthTokenControllerApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
AuthTokenControllerApi apiInstance = new AuthTokenControllerApi();
AuthenticationToken authToken = new AuthenticationToken(); // AuthenticationToken | authToken
try {
ApiResultAuthenticationToken result = apiInstance.createAuthToken(authToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthTokenControllerApi#createAuthToken");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
authToken | AuthenticationToken | authToken |
- Content-Type: application/json
- Accept: application/json
ApiResultVoid deleteAuthToken(id)
delete
// Import classes:
//import com.fortify.ssc.restclient.ApiClient;
//import com.fortify.ssc.restclient.ApiException;
//import com.fortify.ssc.restclient.Configuration;
//import com.fortify.ssc.restclient.auth.*;
//import com.fortify.ssc.restclient.api.AuthTokenControllerApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
AuthTokenControllerApi apiInstance = new AuthTokenControllerApi();
Long id = 789L; // Long | id
try {
ApiResultVoid result = apiInstance.deleteAuthToken(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthTokenControllerApi#deleteAuthToken");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Long | id |
- Content-Type: application/json
- Accept: application/json
ApiResultListAuthenticationToken listAuthToken(fields, start, limit, q, orderby)
list
// Import classes:
//import com.fortify.ssc.restclient.ApiClient;
//import com.fortify.ssc.restclient.ApiException;
//import com.fortify.ssc.restclient.Configuration;
//import com.fortify.ssc.restclient.auth.*;
//import com.fortify.ssc.restclient.api.AuthTokenControllerApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
AuthTokenControllerApi apiInstance = new AuthTokenControllerApi();
String fields = "fields_example"; // String | Output fields
Integer start = 0; // Integer | A start offset in object listing
Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied
String q = "q_example"; // String | A search query
String orderby = "orderby_example"; // String | Fields to order by
try {
ApiResultListAuthenticationToken result = apiInstance.listAuthToken(fields, start, limit, q, orderby);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthTokenControllerApi#listAuthToken");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
fields | String | Output fields | [optional] |
start | Integer | A start offset in object listing | [optional] [default to 0] |
limit | Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] |
q | String | A search query | [optional] |
orderby | String | Fields to order by | [optional] |
ApiResultListAuthenticationToken
- Content-Type: application/json
- Accept: application/json
ApiResultVoid multiDeleteAuthToken(all, ids)
Revoke authentication tokens using ONE of two choices: (1) all tokens owned by the requesting user, OR (2) list of token ids.
// Import classes:
//import com.fortify.ssc.restclient.ApiClient;
//import com.fortify.ssc.restclient.ApiException;
//import com.fortify.ssc.restclient.Configuration;
//import com.fortify.ssc.restclient.auth.*;
//import com.fortify.ssc.restclient.api.AuthTokenControllerApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
AuthTokenControllerApi apiInstance = new AuthTokenControllerApi();
Boolean all = false; // Boolean | Specify value 'true' to revoke all authentication tokens of current logged-in user. This parameter can only be used if the 'ids' parameter is not being used.
String ids = "ids_example"; // String | A comma-separated list of resource identifiers
try {
ApiResultVoid result = apiInstance.multiDeleteAuthToken(all, ids);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthTokenControllerApi#multiDeleteAuthToken");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
all | Boolean | Specify value 'true' to revoke all authentication tokens of current logged-in user. This parameter can only be used if the 'ids' parameter is not being used. | [optional] [default to false] |
ids | String | A comma-separated list of resource identifiers | [optional] |
- Content-Type: application/json
- Accept: application/json
ApiResultVoid revokeAuthToken(resource)
Revoke authentication tokens by value
// Import classes:
//import com.fortify.ssc.restclient.ApiClient;
//import com.fortify.ssc.restclient.ApiException;
//import com.fortify.ssc.restclient.Configuration;
//import com.fortify.ssc.restclient.auth.*;
//import com.fortify.ssc.restclient.api.AuthTokenControllerApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
AuthTokenControllerApi apiInstance = new AuthTokenControllerApi();
AuthTokenRevokeRequest resource = new AuthTokenRevokeRequest(); // AuthTokenRevokeRequest | resource
try {
ApiResultVoid result = apiInstance.revokeAuthToken(resource);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthTokenControllerApi#revokeAuthToken");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
resource | AuthTokenRevokeRequest | resource |
- Content-Type: application/json
- Accept: application/json
ApiResultAuthenticationToken updateAuthToken(id, resource)
update
// Import classes:
//import com.fortify.ssc.restclient.ApiClient;
//import com.fortify.ssc.restclient.ApiException;
//import com.fortify.ssc.restclient.Configuration;
//import com.fortify.ssc.restclient.auth.*;
//import com.fortify.ssc.restclient.api.AuthTokenControllerApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
AuthTokenControllerApi apiInstance = new AuthTokenControllerApi();
Long id = 789L; // Long | id
AuthenticationToken resource = new AuthenticationToken(); // AuthenticationToken | resource
try {
ApiResultAuthenticationToken result = apiInstance.updateAuthToken(id, resource);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthTokenControllerApi#updateAuthToken");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Long | id | |
resource | AuthenticationToken | resource |
- Content-Type: application/json
- Accept: application/json