Examples of PasswordRecord


Examples of org.apache.poi.hssf.record.PasswordRecord

    /**
     * @return a new Password record with password set to 0x0000 (no password).
     */
    private static PasswordRecord createPassword() {
        return new PasswordRecord(0x0000); // no password by default!
    }
View Full Code Here

Examples of org.apache.poi.hssf.record.PasswordRecord

    /**
     * @return a new Password record with password set to 0x0000 (no password).
     */
    private static PasswordRecord createPassword() {
        return new PasswordRecord(0x0000); // no password by default!
    }
View Full Code Here

Examples of org.apache.poi.hssf.record.PasswordRecord

     */
    private static PasswordRecord createPassword() {
        if (log.check( POILogger.DEBUG )) {
            log.log(POILogger.DEBUG, "create password record with 00 password");
        }
        PasswordRecord retval = new PasswordRecord();

        retval.setPassword((short)00);
        return retval;
    }
View Full Code Here

Examples of org.apache.poi.hssf.record.PasswordRecord

     * @param scenarios are protected
     */
    public void protectSheet( String password, boolean objects, boolean scenarios ) {
        int protIdx = -1;
        ProtectRecord prec = getProtect();
        PasswordRecord pass = getPassword();
        prec.setProtect(true);
        pass.setPassword(PasswordRecord.hashPassword(password));
        if((objprotect == null && objects) || (scenprotect != null && scenarios)) {
            protIdx = records.indexOf( protect );
        }
        if(objprotect == null && objects) {
            ObjectProtectRecord rec = createObjectProtect();
View Full Code Here

Examples of org.apache.poi.hssf.record.PasswordRecord

    public void unprotectSheet( boolean sheet, boolean objects, boolean scenarios ) {

        if (!sheet) {
           ProtectRecord prec = getProtect();
           prec.setProtect(sheet);
           PasswordRecord pass = getPassword();
           pass.setPassword((short)00);
        }
        if(objprotect != null && !objects) {
            objprotect.setProtect(false);
        }
        if(scenprotect != null && !scenarios) {
View Full Code Here

Examples of org.apache.poi.hssf.record.PasswordRecord

    /**
     * @return a new Password record with password set to 0x0000 (no password).
     */
    private static PasswordRecord createPassword() {
        return new PasswordRecord(0x0000); // no password by default!
    }
View Full Code Here

Examples of org.apache.poi.hssf.record.PasswordRecord

      _scenarioProtectRecord = null;
      return;
    }

    ProtectRecord prec = getProtect();
    PasswordRecord pass = getPassword();
    prec.setProtect(true);
    pass.setPassword(PasswordRecord.hashPassword(password));
    if (_objectProtectRecord == null && shouldProtectObjects) {
      ObjectProtectRecord rec = createObjectProtect();
      rec.setProtect(true);
      _objectProtectRecord = rec;
    }
View Full Code Here

Examples of org.apache.poi.hssf.record.PasswordRecord

  /**
   * creates a Password record with password set to 0x0000.
   */
  private static PasswordRecord createPassword() {
    return new PasswordRecord(0x0000);
  }
View Full Code Here

Examples of org.apache.poi.hssf.record.PasswordRecord

    /**
     * @return a new Password record with password set to 0x0000 (no password).
     */
    private static PasswordRecord createPassword() {
        return new PasswordRecord(0x0000); // no password by default!
    }
View Full Code Here

Examples of org.apache.poi.hssf.record.PasswordRecord

      _scenarioProtectRecord = null;
      return;
    }

    ProtectRecord prec = getProtect();
    PasswordRecord pass = getPassword();
    prec.setProtect(true);
    pass.setPassword((short)CryptoFunctions.createXorVerifier1(password));
    if (_objectProtectRecord == null && shouldProtectObjects) {
      ObjectProtectRecord rec = createObjectProtect();
      rec.setProtect(true);
      _objectProtectRecord = rec;
    }
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.