Package gov.niarl.his.privacyca

Examples of gov.niarl.his.privacyca.TpmIdentityRequest.toByteArray()


     
                       
//                        HttpsURLConnection.setDefaultHostnameVerifier(new NopX509HostnameVerifier()); // XXX TODO Bug #497 need to allow caller to specify a TlsPolicy // disabled for testing issue #541
                       
      IHisPrivacyCAWebService2 hisPrivacyCAWebService2 = HisPrivacyCAWebServices2ClientInvoker.getHisPrivacyCAWebService2(PrivacyCaUrl);
      byte[] encrypted1 = hisPrivacyCAWebService2.identityRequestGetChallenge(newId.getIdentityRequest(), encryptedEkCert.toByteArray());
      if(encrypted1.length == 1){
        throw new PrivacyCAException("Identity request was rejected by Privacy CA in phase 1 of process");
      }
      //TpmKey aik = new TpmKey(newId.getAikBlob());
     
View Full Code Here


      }else
        //decrypted1 = TpmModuleJava.ActivateIdentity(asym1, sym1, aik, keyAuthRaw, srkAuthRaw, ownerAuthRaw); //Comments  temporarily due to TSSCoreService.jar compiling issue
        decrypted1 = TpmModule.activateIdentity(ownerAuthRaw, keyAuthRaw, asym1, sym1, HisIdentityIndex);
     
      TpmIdentityRequest encryptedChallenge = new TpmIdentityRequest(decrypted1, (RSAPublicKey)pcaCert.getPublicKey(), false);
      byte[] encrypted2 = hisPrivacyCAWebService2.identityRequestSubmitResponse(encryptedChallenge.toByteArray());
      if(encrypted2.length == 1){
        log.warning("Identity request was rejected by Privacy CA in phase 2 of process");
        throw new Exception("Identity request was rejected by Privacy CA in phase 2 of process");
      }
      byte[] asym2 = new byte[256];
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.