Package com.google.enterprise.connector.util

Examples of com.google.enterprise.connector.util.BasicChecksumGenerator


    String suffix;
    if ((connectorName.matches("[a-z0-9]+[a-z0-9_]*")) &&
        ((connectorName.length() + prefix.length()) <= maxLength)) {
      suffix = connectorName;
    } else {
      BasicChecksumGenerator sumGen = new BasicChecksumGenerator("MD5");
      suffix = sumGen.getChecksum(connectorName);
      if (prefix.length() + suffix.length() > maxLength) {
        suffix = suffix.substring(0, maxLength - prefix.length());
      }
    }
    // TODO: Match case of vendor identifiers?
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.util.BasicChecksumGenerator

Copyright © 2018 www.massapicom. 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.