Examples of asBytes()


Examples of freenet.crypt.DSAPublicKey.asBytes()

    byte[] ckey = new byte[CRYPTO_KEY_LENGTH];
    random.nextBytes(ckey);
    DSAGroup g = Global.DSAgroupBigA;
    DSAPrivateKey privKey = new DSAPrivateKey(g, random);
    DSAPublicKey pubKey = new DSAPublicKey(g, privKey);
    byte[] pkHash = SHA256.digest(pubKey.asBytes());
    String docName = "myDOC";
    InsertableClientSSK ik = new InsertableClientSSK(docName, pkHash, pubKey, privKey, ckey, Key.ALGO_AES_PCFB_256_SHA256);
   
    String test = "test";
    SimpleReadOnlyArrayBucket bucket = new SimpleReadOnlyArrayBucket(test.getBytes("UTF-8"));
View Full Code Here

Examples of org.eclipse.jgit.storage.dht.CachedPackKey.asBytes()

  public void put(RepositoryKey repo, CachedPackInfo info, WriteBuffer buffer)
      throws DhtException {
    CachedPackKey key = CachedPackKey.fromInfo(info);
    table.put(repo.asBytes(),
        colCachedPack.append(key.asBytes()),
        info.toByteArray());
  }

  public void remove(RepositoryKey repo, CachedPackKey key, WriteBuffer buffer)
      throws DhtException {
View Full Code Here

Examples of org.eclipse.jgit.storage.dht.ChunkKey.asBytes()

      throws DhtException {
    CsBuffer buf = (CsBuffer) buffer;
    ChunkKey key = link.getChunkKey();
    buf.put(CF, //
        objId.asBytes(), //
        colInfo.append(key.asBytes()), //
        link.asBytes());
  }

  public void remove(ObjectIndexKey objId, ChunkKey chunk, WriteBuffer buffer)
      throws DhtException {
View Full Code Here

Examples of org.eclipse.jgit.storage.dht.ChunkKey.asBytes()

      throws DhtException {
    CsBuffer buf = (CsBuffer) buffer;
    ChunkKey key = info.getChunkKey();
    buf.put(CF, //
        repo.asBytes(), //
        colChunkInfo.append(key.asBytes()), //
        info.asBytes());
  }

  public void remove(RepositoryKey repo, ChunkKey chunk, WriteBuffer buffer)
      throws DhtException {
View Full Code Here

Examples of org.eclipse.jgit.storage.dht.RepositoryKey.asBytes()

  public boolean compareAndPut(RefKey refKey, RefData oldData, RefData newData)
      throws DhtException, TimeoutException {
    RepositoryKey repo = refKey.getRepositoryKey();
    return table.compareAndSet( //
        repo.asBytes(), //
        colRef.append(refKey.asBytes()), //
        oldData != RefDataUtil.NONE ? oldData.toByteArray() : null, //
        newData.toByteArray());
  }
View Full Code Here

Examples of org.ethereum.util.Value.asBytes()

        if (logger.isDebugEnabled())
          logger.debug("Retrieving key {}", Hex.toHexString(key));
        byte[] k = binToNibbles(key);
        Value c = new Value(this.get(this.root, k));

        return (c == null)? null : c.asBytes();
    }
   
    /**
     * Insert key/value pair into trie
     *
 
View Full Code Here

Examples of org.hornetq.utils.UUID.asBytes()

      NodeManager nodeManager = new FileLockNodeManager(getTemporaryDir());
      nodeManager.start();
      UUID id1 = nodeManager.getUUID();
      nodeManager.stop();
      nodeManager.start();
      assertEqualsByteArrays(id1.asBytes(), nodeManager.getUUID().asBytes());
      nodeManager.stop();
   }
   @Override
   public void performWork(NodeManagerAction... actions) throws Exception
   {
View Full Code Here

Examples of org.hornetq.utils.UUID.asBytes()

      NodeManager nodeManager = new FileLockNodeManager(".");
      nodeManager.start();
      UUID id1 = nodeManager.getUUID();
      nodeManager.stop();
      nodeManager.start();
      assertEqualsByteArrays(id1.asBytes(), nodeManager.getUUID().asBytes());
      nodeManager.stop();
   }
   @Override
   public void performWork(NodeManagerAction... actions) throws Exception
   {
View Full Code Here

Examples of org.jboss.dmr.ModelNode.asBytes()

        ModelNode op = new ModelNode();
        op.get("operation").set("upload-deployment-stream");
        op.get("input-stream-index").set(0);
        Operation operation = new OperationBuilder(op).addInputStream(stream).build();
        ModelNode result = executeForResult(operation);
        return result.asBytes();
    }

    @Override
    public DomainDeploymentManager getDeploymentManager() {
        if (deploymentManager == null) {
View Full Code Here

Examples of org.jboss.dmr.ModelNode.asBytes()

        ModelNode op = new ModelNode();
        op.get("operation").set("upload-deployment-stream");
        op.get("input-stream-index").set(0);
        Operation operation = new OperationBuilder(op).addInputStream(stream).build();
        ModelNode result = executeForResult(operation);
        return result.asBytes();
    }

    @Override
    public DomainDeploymentManager getDeploymentManager() {
        if (deploymentManager == null) {
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.