SWS APIs

PostCredentialsInfo

Retrieve the credential and return the main identity information and the public key certificate or the certificate chain associated to it.


/IDPrimeVirtual/SWS/V1.0/Credentials/Info

Usage and SDK Samples

curl -X POST\
-H "Authorization: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json,text/json,application/*+json"\
"//IDPrimeVirtual/SWS/V1.0/Credentials/Info"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SWSApi;

import java.io.File;
import java.util.*;

public class SWSApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        SWSApi apiInstance = new SWSApi();
        CredentialsInfoParam body = ; // CredentialsInfoParam | The unique identifier associated to the credential.
        String xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example; // String | If SWS multi-tenant support is enabled, provide tenantId in the header.
        try {
            credentialsInfo result = apiInstance.iDPrimeVirtualSWSV10CredentialsInfoPost(body, xIDPrimeVirtualTenantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SWSApi#iDPrimeVirtualSWSV10CredentialsInfoPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SWSApi;

public class SWSApiExample {

    public static void main(String[] args) {
        SWSApi apiInstance = new SWSApi();
        CredentialsInfoParam body = ; // CredentialsInfoParam | The unique identifier associated to the credential.
        String xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example; // String | If SWS multi-tenant support is enabled, provide tenantId in the header.
        try {
            credentialsInfo result = apiInstance.iDPrimeVirtualSWSV10CredentialsInfoPost(body, xIDPrimeVirtualTenantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SWSApi#iDPrimeVirtualSWSV10CredentialsInfoPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
CredentialsInfoParam *body = ; // The unique identifier associated to the credential.
String *xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example; // If SWS multi-tenant support is enabled, provide tenantId in the header. (optional)

SWSApi *apiInstance = [[SWSApi alloc] init];

// Retrieve the credential and return the main identity information and the public key certificate or the certificate chain associated to it.
[apiInstance iDPrimeVirtualSWSV10CredentialsInfoPostWith:body
    xIDPrimeVirtualTenantId:xIDPrimeVirtualTenantId
              completionHandler: ^(credentialsInfo output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SwsApIs = require('sws_ap_is');
var defaultClient = SwsApIs.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new SwsApIs.SWSApi()
var body = ; // {{CredentialsInfoParam}} The unique identifier associated to the credential.
var opts = { 
  'xIDPrimeVirtualTenantId': xIDPrimeVirtualTenantId_example // {{String}} If SWS multi-tenant support is enabled, provide tenantId in the header.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.iDPrimeVirtualSWSV10CredentialsInfoPost(body, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class iDPrimeVirtualSWSV10CredentialsInfoPostExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new SWSApi();
            var body = new CredentialsInfoParam(); // CredentialsInfoParam | The unique identifier associated to the credential.
            var xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example;  // String | If SWS multi-tenant support is enabled, provide tenantId in the header. (optional) 

            try
            {
                // Retrieve the credential and return the main identity information and the public key certificate or the certificate chain associated to it.
                credentialsInfo result = apiInstance.iDPrimeVirtualSWSV10CredentialsInfoPost(body, xIDPrimeVirtualTenantId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SWSApi.iDPrimeVirtualSWSV10CredentialsInfoPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiSWSApi();
$body = ; // CredentialsInfoParam | The unique identifier associated to the credential.
$xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example; // String | If SWS multi-tenant support is enabled, provide tenantId in the header.

try {
    $result = $api_instance->iDPrimeVirtualSWSV10CredentialsInfoPost($body, $xIDPrimeVirtualTenantId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SWSApi->iDPrimeVirtualSWSV10CredentialsInfoPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SWSApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::SWSApi->new();
my $body = WWW::SwaggerClient::Object::CredentialsInfoParam->new(); # CredentialsInfoParam | The unique identifier associated to the credential.
my $xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example; # String | If SWS multi-tenant support is enabled, provide tenantId in the header.

eval { 
    my $result = $api_instance->iDPrimeVirtualSWSV10CredentialsInfoPost(body => $body, xIDPrimeVirtualTenantId => $xIDPrimeVirtualTenantId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SWSApi->iDPrimeVirtualSWSV10CredentialsInfoPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.SWSApi()
body =  # CredentialsInfoParam | The unique identifier associated to the credential.
xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example # String | If SWS multi-tenant support is enabled, provide tenantId in the header. (optional)

try: 
    # Retrieve the credential and return the main identity information and the public key certificate or the certificate chain associated to it.
    api_response = api_instance.i_d_prime_virtual_swsv10_credentials_info_post(body, xIDPrimeVirtualTenantId=xIDPrimeVirtualTenantId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SWSApi->iDPrimeVirtualSWSV10CredentialsInfoPost: %s\n" % e)

Parameters

Header parameters
Name Description
X-IDPrimeVirtual-TenantId
String
If SWS multi-tenant support is enabled, provide tenantId in the header.
Body parameters
Name Description
body *

Responses

Status: 200 - Success - Retrieve the credential and return the main identity information and the public key certificate or the certificate chain associated to it.

Status: 400 - Bad Request - Client Side Error!

Status: 401 - Unauthorized Access!

Status: 404 - Tenant/User/Token Not Found!

Status: 500 - Internal Server Error!


PostCredentialsList

Returns the list of credentials associated with a user identifier.


/IDPrimeVirtual/SWS/V1.0/Credentials/List

Usage and SDK Samples

curl -X POST\
-H "Authorization: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json,text/json,application/*+json"\
"//IDPrimeVirtual/SWS/V1.0/Credentials/List"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SWSApi;

import java.io.File;
import java.util.*;

public class SWSApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        SWSApi apiInstance = new SWSApi();
        CredentialsListParam body = ; // CredentialsListParam | 
        String xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example; // String | If SWS multi-tenant support is enabled, provide tenantId in the header.
        try {
            credentialsList result = apiInstance.iDPrimeVirtualSWSV10CredentialsListPost(body, xIDPrimeVirtualTenantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SWSApi#iDPrimeVirtualSWSV10CredentialsListPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SWSApi;

public class SWSApiExample {

    public static void main(String[] args) {
        SWSApi apiInstance = new SWSApi();
        CredentialsListParam body = ; // CredentialsListParam | 
        String xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example; // String | If SWS multi-tenant support is enabled, provide tenantId in the header.
        try {
            credentialsList result = apiInstance.iDPrimeVirtualSWSV10CredentialsListPost(body, xIDPrimeVirtualTenantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SWSApi#iDPrimeVirtualSWSV10CredentialsListPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
CredentialsListParam *body = ; // 
String *xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example; // If SWS multi-tenant support is enabled, provide tenantId in the header. (optional)

SWSApi *apiInstance = [[SWSApi alloc] init];

// Returns the list of credentials associated with a user identifier.
[apiInstance iDPrimeVirtualSWSV10CredentialsListPostWith:body
    xIDPrimeVirtualTenantId:xIDPrimeVirtualTenantId
              completionHandler: ^(credentialsList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SwsApIs = require('sws_ap_is');
var defaultClient = SwsApIs.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new SwsApIs.SWSApi()
var body = ; // {{CredentialsListParam}} 
var opts = { 
  'xIDPrimeVirtualTenantId': xIDPrimeVirtualTenantId_example // {{String}} If SWS multi-tenant support is enabled, provide tenantId in the header.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.iDPrimeVirtualSWSV10CredentialsListPost(body, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class iDPrimeVirtualSWSV10CredentialsListPostExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new SWSApi();
            var body = new CredentialsListParam(); // CredentialsListParam | 
            var xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example;  // String | If SWS multi-tenant support is enabled, provide tenantId in the header. (optional) 

            try
            {
                // Returns the list of credentials associated with a user identifier.
                credentialsList result = apiInstance.iDPrimeVirtualSWSV10CredentialsListPost(body, xIDPrimeVirtualTenantId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SWSApi.iDPrimeVirtualSWSV10CredentialsListPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiSWSApi();
$body = ; // CredentialsListParam | 
$xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example; // String | If SWS multi-tenant support is enabled, provide tenantId in the header.

try {
    $result = $api_instance->iDPrimeVirtualSWSV10CredentialsListPost($body, $xIDPrimeVirtualTenantId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SWSApi->iDPrimeVirtualSWSV10CredentialsListPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SWSApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::SWSApi->new();
my $body = WWW::SwaggerClient::Object::CredentialsListParam->new(); # CredentialsListParam | 
my $xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example; # String | If SWS multi-tenant support is enabled, provide tenantId in the header.

eval { 
    my $result = $api_instance->iDPrimeVirtualSWSV10CredentialsListPost(body => $body, xIDPrimeVirtualTenantId => $xIDPrimeVirtualTenantId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SWSApi->iDPrimeVirtualSWSV10CredentialsListPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.SWSApi()
body =  # CredentialsListParam | 
xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example # String | If SWS multi-tenant support is enabled, provide tenantId in the header. (optional)

try: 
    # Returns the list of credentials associated with a user identifier.
    api_response = api_instance.i_d_prime_virtual_swsv10_credentials_list_post(body, xIDPrimeVirtualTenantId=xIDPrimeVirtualTenantId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SWSApi->iDPrimeVirtualSWSV10CredentialsListPost: %s\n" % e)

Parameters

Header parameters
Name Description
X-IDPrimeVirtual-TenantId
String
If SWS multi-tenant support is enabled, provide tenantId in the header.
Body parameters
Name Description
body *

Responses

Status: 200 - Success - Returns the list of credentials associated with a user identifier.

Status: 401 - Unauthorized Access!

Status: 404 - Tenant/User/Token Not Found!

Status: 500 - Internal Server Error!


PostInfo

Returns information about the remote service and the list of the API methods it supports based on CSC standards.


/IDPrimeVirtual/SWS/V1.0/Info

Usage and SDK Samples

curl -X POST\
-H "Authorization: [[apiKey]]"\
-H "Accept: application/json"\
"//IDPrimeVirtual/SWS/V1.0/Info"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SWSApi;

import java.io.File;
import java.util.*;

public class SWSApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        SWSApi apiInstance = new SWSApi();
        String xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example; // String | If SWS multi-tenant support is enabled, provide tenantId in the header.
        try {
            info result = apiInstance.iDPrimeVirtualSWSV10InfoPost(xIDPrimeVirtualTenantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SWSApi#iDPrimeVirtualSWSV10InfoPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SWSApi;

public class SWSApiExample {

    public static void main(String[] args) {
        SWSApi apiInstance = new SWSApi();
        String xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example; // String | If SWS multi-tenant support is enabled, provide tenantId in the header.
        try {
            info result = apiInstance.iDPrimeVirtualSWSV10InfoPost(xIDPrimeVirtualTenantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SWSApi#iDPrimeVirtualSWSV10InfoPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
String *xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example; // If SWS multi-tenant support is enabled, provide tenantId in the header. (optional)

SWSApi *apiInstance = [[SWSApi alloc] init];

// Returns information about the remote service and the list of the API methods it supports based on CSC standards.
[apiInstance iDPrimeVirtualSWSV10InfoPostWith:xIDPrimeVirtualTenantId
              completionHandler: ^(info output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SwsApIs = require('sws_ap_is');
var defaultClient = SwsApIs.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new SwsApIs.SWSApi()
var opts = { 
  'xIDPrimeVirtualTenantId': xIDPrimeVirtualTenantId_example // {{String}} If SWS multi-tenant support is enabled, provide tenantId in the header.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.iDPrimeVirtualSWSV10InfoPost(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class iDPrimeVirtualSWSV10InfoPostExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new SWSApi();
            var xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example;  // String | If SWS multi-tenant support is enabled, provide tenantId in the header. (optional) 

            try
            {
                // Returns information about the remote service and the list of the API methods it supports based on CSC standards.
                info result = apiInstance.iDPrimeVirtualSWSV10InfoPost(xIDPrimeVirtualTenantId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SWSApi.iDPrimeVirtualSWSV10InfoPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiSWSApi();
$xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example; // String | If SWS multi-tenant support is enabled, provide tenantId in the header.

try {
    $result = $api_instance->iDPrimeVirtualSWSV10InfoPost($xIDPrimeVirtualTenantId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SWSApi->iDPrimeVirtualSWSV10InfoPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SWSApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::SWSApi->new();
my $xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example; # String | If SWS multi-tenant support is enabled, provide tenantId in the header.

eval { 
    my $result = $api_instance->iDPrimeVirtualSWSV10InfoPost(xIDPrimeVirtualTenantId => $xIDPrimeVirtualTenantId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SWSApi->iDPrimeVirtualSWSV10InfoPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.SWSApi()
xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example # String | If SWS multi-tenant support is enabled, provide tenantId in the header. (optional)

try: 
    # Returns information about the remote service and the list of the API methods it supports based on CSC standards.
    api_response = api_instance.i_d_prime_virtual_swsv10_info_post(xIDPrimeVirtualTenantId=xIDPrimeVirtualTenantId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SWSApi->iDPrimeVirtualSWSV10InfoPost: %s\n" % e)

Parameters

Header parameters
Name Description
X-IDPrimeVirtual-TenantId
String
If SWS multi-tenant support is enabled, provide tenantId in the header.

Responses

Status: 200 - Success - Returns information about the remote service and the list of the API methods it supports based on CSC standards.

Status: 500 - Internal Server Error!


PostSignaturesSignHash

Calculate the remote digital signature of one or multiple hash values provided in input.


/IDPrimeVirtual/SWS/V1.0/Signatures/SignHash

Usage and SDK Samples

curl -X POST\
-H "Authorization: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json,text/json,application/*+json"\
"//IDPrimeVirtual/SWS/V1.0/Signatures/SignHash"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SWSApi;

import java.io.File;
import java.util.*;

public class SWSApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        SWSApi apiInstance = new SWSApi();
        SignaturesSignHashParam body = ; // SignaturesSignHashParam | 
        String xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example; // String | If SWS multi-tenant support is enabled, provide tenantId in the header.
        try {
            signaturesSignHash result = apiInstance.iDPrimeVirtualSWSV10SignaturesSignHashPost(body, xIDPrimeVirtualTenantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SWSApi#iDPrimeVirtualSWSV10SignaturesSignHashPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SWSApi;

public class SWSApiExample {

    public static void main(String[] args) {
        SWSApi apiInstance = new SWSApi();
        SignaturesSignHashParam body = ; // SignaturesSignHashParam | 
        String xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example; // String | If SWS multi-tenant support is enabled, provide tenantId in the header.
        try {
            signaturesSignHash result = apiInstance.iDPrimeVirtualSWSV10SignaturesSignHashPost(body, xIDPrimeVirtualTenantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SWSApi#iDPrimeVirtualSWSV10SignaturesSignHashPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
SignaturesSignHashParam *body = ; // 
String *xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example; // If SWS multi-tenant support is enabled, provide tenantId in the header. (optional)

SWSApi *apiInstance = [[SWSApi alloc] init];

// Calculate the remote digital signature of one or multiple hash values provided in input.
[apiInstance iDPrimeVirtualSWSV10SignaturesSignHashPostWith:body
    xIDPrimeVirtualTenantId:xIDPrimeVirtualTenantId
              completionHandler: ^(signaturesSignHash output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SwsApIs = require('sws_ap_is');
var defaultClient = SwsApIs.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new SwsApIs.SWSApi()
var body = ; // {{SignaturesSignHashParam}} 
var opts = { 
  'xIDPrimeVirtualTenantId': xIDPrimeVirtualTenantId_example // {{String}} If SWS multi-tenant support is enabled, provide tenantId in the header.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.iDPrimeVirtualSWSV10SignaturesSignHashPost(body, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class iDPrimeVirtualSWSV10SignaturesSignHashPostExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new SWSApi();
            var body = new SignaturesSignHashParam(); // SignaturesSignHashParam | 
            var xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example;  // String | If SWS multi-tenant support is enabled, provide tenantId in the header. (optional) 

            try
            {
                // Calculate the remote digital signature of one or multiple hash values provided in input.
                signaturesSignHash result = apiInstance.iDPrimeVirtualSWSV10SignaturesSignHashPost(body, xIDPrimeVirtualTenantId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SWSApi.iDPrimeVirtualSWSV10SignaturesSignHashPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiSWSApi();
$body = ; // SignaturesSignHashParam | 
$xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example; // String | If SWS multi-tenant support is enabled, provide tenantId in the header.

try {
    $result = $api_instance->iDPrimeVirtualSWSV10SignaturesSignHashPost($body, $xIDPrimeVirtualTenantId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SWSApi->iDPrimeVirtualSWSV10SignaturesSignHashPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SWSApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::SWSApi->new();
my $body = WWW::SwaggerClient::Object::SignaturesSignHashParam->new(); # SignaturesSignHashParam | 
my $xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example; # String | If SWS multi-tenant support is enabled, provide tenantId in the header.

eval { 
    my $result = $api_instance->iDPrimeVirtualSWSV10SignaturesSignHashPost(body => $body, xIDPrimeVirtualTenantId => $xIDPrimeVirtualTenantId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SWSApi->iDPrimeVirtualSWSV10SignaturesSignHashPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.SWSApi()
body =  # SignaturesSignHashParam | 
xIDPrimeVirtualTenantId = xIDPrimeVirtualTenantId_example # String | If SWS multi-tenant support is enabled, provide tenantId in the header. (optional)

try: 
    # Calculate the remote digital signature of one or multiple hash values provided in input.
    api_response = api_instance.i_d_prime_virtual_swsv10_signatures_sign_hash_post(body, xIDPrimeVirtualTenantId=xIDPrimeVirtualTenantId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SWSApi->iDPrimeVirtualSWSV10SignaturesSignHashPost: %s\n" % e)

Parameters

Header parameters
Name Description
X-IDPrimeVirtual-TenantId
String
If SWS multi-tenant support is enabled, provide tenantId in the header.
Body parameters
Name Description
body *

Responses

Status: 200 - Success - Returns base64-encoded signed hash(s). In case of multiple signatures, the signed hashes SHALL be returned in the same order as the corresponding hashes provided as an input parameter.

Status: 400 - Bad Request - Client Side Error!

Status: 401 - Unauthorized Access!

Status: 404 - Tenant/User/Token Not Found!

Status: 500 - Internal Server Error!