Search in sources :

Example 1 with HisPrivacyCAWebService2

use of gov.niarl.his.webservices.hisPrivacyCAWebServices2.clientWsImport.HisPrivacyCAWebService2 in project OpenAttestation by OpenAttestation.

the class HisPrivacyCAWebServices2ClientImpl method getHisPrivacyCAWebService2.

public static IHisPrivacyCAWebService2 getHisPrivacyCAWebService2(String url) {
    try {
        HisPrivacyCAWebService2FactoryServiceService hisPrivacyCAWebService2FactoryServiceService = new HisPrivacyCAWebService2FactoryServiceService(new URL(url + "/hisPrivacyCAWebService2FactoryService?wsdl"), new QName("http://server.hisPrivacyCAWebService2.webservices.his.niarl.gov/", "HisPrivacyCAWebService2FactoryServiceService"));
        HisPrivacyCAWebService2FactoryService hisPrivacyCAWebService2FactoryService = hisPrivacyCAWebService2FactoryServiceService.getHisPrivacyCAWebService2FactoryServicePort();
        HisPrivacyCAWebService2Service hisPrivacyCAWebService2Service = new HisPrivacyCAWebService2Service(new URL(url + "/hisPrivacyCAWebService2?wsdl"), new QName("http://server.hisPrivacyCAWebService2.webservices.his.niarl.gov/", "HisPrivacyCAWebService2Service"));
        return new HisPrivacyCAWebServices2ClientImpl(hisPrivacyCAWebService2Service.getPort(hisPrivacyCAWebService2FactoryService.getHisPrivacyCAWebService2(), HisPrivacyCAWebService2.class));
    } catch (MalformedURLException e) {
        e.printStackTrace();
        throw new RuntimeException(e);
    }
}
Also used : MalformedURLException(java.net.MalformedURLException) HisPrivacyCAWebService2FactoryServiceService(gov.niarl.his.webservices.hisPrivacyCAWebServices2.clientWsImport.HisPrivacyCAWebService2FactoryServiceService) QName(javax.xml.namespace.QName) HisPrivacyCAWebService2(gov.niarl.his.webservices.hisPrivacyCAWebServices2.clientWsImport.HisPrivacyCAWebService2) IHisPrivacyCAWebService2(gov.niarl.his.webservices.hisPrivacyCAWebService2.IHisPrivacyCAWebService2) HisPrivacyCAWebService2Service(gov.niarl.his.webservices.hisPrivacyCAWebServices2.clientWsImport.HisPrivacyCAWebService2Service) HisPrivacyCAWebService2FactoryService(gov.niarl.his.webservices.hisPrivacyCAWebServices2.clientWsImport.HisPrivacyCAWebService2FactoryService) URL(java.net.URL)

Example 2 with HisPrivacyCAWebService2

use of gov.niarl.his.webservices.hisPrivacyCAWebServices2.clientWsImport.HisPrivacyCAWebService2 in project OpenAttestation by OpenAttestation.

the class HisPrivacyCAWebServices2ClientImpl method requestGetEC.

public byte[] requestGetEC(byte[] encryptedEkMod, byte[] encryptedSessionKey, int ecValidDays) {
    ByteArray eKModulusByteArray = new ByteArray();
    eKModulusByteArray.setBytes(encryptedEkMod);
    ByteArray sessionKeyArray = new ByteArray();
    sessionKeyArray.setBytes(encryptedSessionKey);
    return hisPrivacyCAWebService2.requestGetEC(eKModulusByteArray, sessionKeyArray, ecValidDays).getBytes();
}
Also used : ByteArray(gov.niarl.his.webservices.hisPrivacyCAWebServices2.clientWsImport.ByteArray)

Example 3 with HisPrivacyCAWebService2

use of gov.niarl.his.webservices.hisPrivacyCAWebServices2.clientWsImport.HisPrivacyCAWebService2 in project OpenAttestation by OpenAttestation.

the class HisPrivacyCAWebServices2ClientImpl method identityRequestGetChallenge.

public byte[] identityRequestGetChallenge(byte[] identityRequest, byte[] endorsementCertificate) {
    ByteArray identityRequestByteArray = new ByteArray();
    identityRequestByteArray.setBytes(identityRequest);
    ByteArray endorsementCertificateByteArray = new ByteArray();
    endorsementCertificateByteArray.setBytes(endorsementCertificate);
    return hisPrivacyCAWebService2.identityRequestGetChallenge(identityRequestByteArray, endorsementCertificateByteArray).getBytes();
}
Also used : ByteArray(gov.niarl.his.webservices.hisPrivacyCAWebServices2.clientWsImport.ByteArray)

Example 4 with HisPrivacyCAWebService2

use of gov.niarl.his.webservices.hisPrivacyCAWebServices2.clientWsImport.HisPrivacyCAWebService2 in project OpenAttestation by OpenAttestation.

the class HisPrivacyCAWebServices2ClientImpl method identityRequestSubmitResponse.

public byte[] identityRequestSubmitResponse(byte[] identityRequestResponseToChallenge) {
    ByteArray identityRequestResponseToChallengeByteArray = new ByteArray();
    identityRequestResponseToChallengeByteArray.setBytes(identityRequestResponseToChallenge);
    return hisPrivacyCAWebService2.identityRequestSubmitResponse(identityRequestResponseToChallengeByteArray).getBytes();
}
Also used : ByteArray(gov.niarl.his.webservices.hisPrivacyCAWebServices2.clientWsImport.ByteArray)

Aggregations

ByteArray (gov.niarl.his.webservices.hisPrivacyCAWebServices2.clientWsImport.ByteArray)3 IHisPrivacyCAWebService2 (gov.niarl.his.webservices.hisPrivacyCAWebService2.IHisPrivacyCAWebService2)1 HisPrivacyCAWebService2 (gov.niarl.his.webservices.hisPrivacyCAWebServices2.clientWsImport.HisPrivacyCAWebService2)1 HisPrivacyCAWebService2FactoryService (gov.niarl.his.webservices.hisPrivacyCAWebServices2.clientWsImport.HisPrivacyCAWebService2FactoryService)1 HisPrivacyCAWebService2FactoryServiceService (gov.niarl.his.webservices.hisPrivacyCAWebServices2.clientWsImport.HisPrivacyCAWebService2FactoryServiceService)1 HisPrivacyCAWebService2Service (gov.niarl.his.webservices.hisPrivacyCAWebServices2.clientWsImport.HisPrivacyCAWebService2Service)1 MalformedURLException (java.net.MalformedURLException)1 URL (java.net.URL)1 QName (javax.xml.namespace.QName)1