Examples of toByteArray()


Examples of com.unboundid.util.ByteStringBuffer.toByteArray()

            if (!first) {
                ldifOutputStream.write(eol);
            } else {
                first = false;
            }
            ldifOutputStream.write(buffer.toByteArray());
        }
    }

    /**
     * Close the {@link LDIFFormatWriter} which does not require any processing.
View Full Code Here

Examples of com.zaranux.client.crypto.DerOutputStream.toByteArray()

            try {
                DerOutputStream out;

                out = new DerOutputStream ();
                encode (out);
                encodedKey = out.toByteArray();

            } catch (IOException e) {
                throw new InvalidKeyException ("IOException : " +
                                               e.getMessage());
            }
View Full Code Here

Examples of erjang.driver.IO.BARR.toByteArray()

      } catch (IOException e) {
        throw new ErlangError(new EString(e.getMessage()));
      }
    }
   
    return new EBinary(b.toByteArray());   
  }
 
  /**
   * decode_unsigned(Subject) -> Unsigned
   */
 
View Full Code Here

Examples of flash.swf.TagEncoder.toByteArray()

        // decode -> encode -> decode -> print
        TagEncoder encoder = new TagEncoder();
        in = url.openStream();
        new TagDecoder(in, url).parse(encoder);
        encoder.finish();
        in = new ByteArrayInputStream(encoder.toByteArray());
      }
      else
      {
        // decode -> print
        in = url.openStream();
View Full Code Here

Examples of freenet.support.io.ArrayBucket.toByteArray()

    }
    // Verify it.
    CHKBlock block = CHKBlock.construct(encodedBlock.getBlock().data, encodedBlock.getBlock().headers, cryptoAlgorithm);
    ClientCHKBlock checkBlock = new ClientCHKBlock(block, key);
    ArrayBucket checkData = (ArrayBucket) checkBlock.decode(new ArrayBucketFactory(), data.length, false);
    assert(Arrays.equals(checkData.toByteArray(), data));
    if(newAlgo) {
      checkData = (ArrayBucket) checkBlock.decode(new ArrayBucketFactory(), data.length, false, true);
      assert(Arrays.equals(checkData.toByteArray(), data));
    }
  }
View Full Code Here

Examples of gnu.javax.crypto.key.OutgoingMessage.toByteArray()

    // (2) host receives user identity and key, and generates its own
    IncomingMessage in = null;
    try
      {
        in = new IncomingMessage(out.toByteArray());
      }
    catch (KeyAgreementException x)
      {
        harness.debug(x);
        harness.fail("while feeding Host (B), User's (A) incoming message");
View Full Code Here

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

Examples of grails.plugin.cache.SerializableByteArrayOutputStream.toByteArray()

    String contentType = wrapper.getContentType();
    if (!StringUtils.hasLength(contentType)) {
      contentType = response.getContentType();
    }

    return new PageInfo(wrapper.getStatus(), contentType, out.toByteArray(),
      false, timeToLiveSeconds, wrapper.getAllHeaders(), wrapper.getCookies(), cacheableRequestAttributes);
  }

  protected List<String> toList(Enumeration<String> e) {
    List<String> list = new ArrayList<String>();
View Full Code Here

Examples of groovyjarjarasm.asm.ClassWriter.toByteArray()

        {
            if (name.equals("MyClass"))
            {
                ClassWriter cw = new ClassWriter(true);
                cw.visit(Opcodes.V1_5, Opcodes.ACC_PUBLIC, "MyClass", null, "java/lang/Object", null);
                return defineClass(name, cw.toByteArray(), 0, cw.toByteArray().length);
            }
            else
            {
                return super.findClass(name);
            }
View Full Code Here

Examples of httl.util.UnsafeByteArrayOutputStream.toByteArray()

      try {
        render(parameters, output);
      } catch (IOException e) {
        throw new RuntimeException(e.getMessage(), e);
      }
      return output.toByteArray();
    } else {
      UnsafeStringWriter writer = new UnsafeStringWriter();
      try {
        render(parameters, writer);
      } catch (IOException e) {
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.