Examples of MD5


Examples of org.apache.jackrabbit.vault.util.MD5

                action = FileAction.MERGED;
            }

            // and update the 'work'
            // check if MD5 changes and change action accordingly
            MD5 oldMd5 = work.getMd5();
            work.update(file, true);
            if (oldMd5.equals(work.getMd5())) {
                action = FileAction.VOID;
            }
            // check if remote file provided a last modified
            if (remoteFile.lastModified() == 0) {
                if (work.getMd5().equals(base.getMd5())) {
View Full Code Here

Examples of org.apache.jackrabbit.vault.util.MD5

        long lastMod = remoteFile.lastModified();
        if (lastMod > 0) {
            localFile.setLastModified(lastMod);
        }
        if (digest != null) {
            md5 = new MD5(digest.digest());
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.vault.util.MD5

        if (elem.hasAttribute(AN_DATE)) {
            entry.setDate(ISO8601.parse(elem.getAttribute(AN_DATE)).getTime().getTime());
        }
        if (elem.hasAttribute(AN_MD5)) {
            try {
                entry.setMd5(new MD5(elem.getAttribute(AN_MD5)));
            } catch (Exception e) {
                // ignore
            }
        }
        if (elem.hasAttribute(AN_CONTENT_TYPE)) {
View Full Code Here

Examples of org.apache.java.security.MD5

        }

        url.append ( data.getServerData().getScriptName() );
        turbineURL = url.toString();

        MD5 md5 = new MD5();
        turbineId = Bytes.toString(md5.digest(url.toString().getBytes()));

        Log.info("This is Turbine instance running at: " + url);
        Log.info("The instance id is #" + turbineId);
        setInit(true);
    }
View Full Code Here

Examples of org.apache.java.security.MD5

        }

        url.append ( data.getServerData().getScriptName() );
        turbineURL = url.toString();

        MD5 md5 = new MD5();
        turbineId = Bytes.toString(md5.digest(url.toString().getBytes()));

        Log.info("This is Turbine instance running at: " + url);
        Log.info("The instance id is #" + turbineId);
        setInit(true);
    }
View Full Code Here

Examples of org.apache.sshd.common.digest.MD5

     */
    public static String getFingerPrint(PublicKey key) {
        try {
            Buffer buffer = new Buffer();
            buffer.putRawPublicKey(key);
            MD5 md5 = new MD5();
            md5.init();
            md5.update(buffer.array(), 0, buffer.wpos());
            byte[] data = md5.digest();
            return BufferUtils.printHex(data, 0, data.length, ':');
        } catch (Exception e) {
            return "Unable to compute fingerprint";
        }
    }
View Full Code Here

Examples of org.hsqldb.lib.MD5

    private Date date;
    private String sessionIdHash;

    public SingleUseToken(String sessionId) throws TokenException {
        try {
            MD5 md5 = new MD5();
            this.sessionIdHash = md5.digest(sessionId);
        } catch (Exception e) {
            throw new TokenException("Error creating SingleUseToken.", e);
        }

        date = new Date();
View Full Code Here

Examples of org.jclouds.virtualbox.statements.Md5

            runAsRoot(false));
      Futures.getUnchecked(future);

      if (expectedMd5 != null) {
         String filePath = isosDir + File.separator + fileName;
         ListenableFuture<ExecResponse> md5future = runScriptOnNodeFactory.submit(hostNode, new Md5(filePath),
               runAsRoot(false));

         ExecResponse responseMd5 = Futures.getUnchecked(md5future);
         assert responseMd5.getExitStatus() == 0 : hostNode.getId() + ": " + responseMd5;
         checkNotNull(responseMd5.getOutput(), "iso_md5 missing");
View Full Code Here

Examples of org.jclouds.virtualbox.statements.Md5

            runAsRoot(false));
      Futures.getUnchecked(future);

      if (expectedMd5 != null) {
         String filePath = isosDir + File.separator + fileName;
         ListenableFuture<ExecResponse> md5future = runScriptOnNodeFactory.submit(hostNode, new Md5(filePath),
               runAsRoot(false));

         ExecResponse responseMd5 = Futures.getUnchecked(md5future);
         assert responseMd5.getExitStatus() == 0 : hostNode.getId() + ": " + responseMd5;
         checkNotNull(responseMd5.getOutput(), "iso_md5 missing");
View Full Code Here

Examples of org.w3c.tools.crypt.Md5

  String nid = current.activeCount()+
      System.getProperty("os.version")+
      System.getProperty("user.name")+
      System.getProperty("java.version");
  System.out.println(nid);
  Md5 md5 = new Md5(nid);
  md5.processString();
  return md5.getStringDigest();
    }
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.