Package org.apache.poi.hssf.record.crypto

Examples of org.apache.poi.hssf.record.crypto.Biff8XORKey.validate()


      } else if (fpr.getXorKeyData() != null) {
          XorKeyData xor = fpr.getXorKeyData();
          Biff8XORKey xorKey = Biff8XORKey.create(userPassword, xor.getKey());
          key = xorKey;
         
          if (!xorKey.validate(userPassword, xor.getVerifier())) {
                    throw new EncryptedDocumentException(
                    (Decryptor.DEFAULT_PASSWORD.equals(userPassword) ? "Default" : "Supplied")
                    + " password is invalid for key/verifier");
          }
      } else {
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.