Documentation of 'org.apache.poi.xssf.usermodel.helpers.XSSFPaswordHelper' Java class
XSSFPaswordHelper
org.apache.poi.xssf.usermodel.helpers

Class XSSFPaswordHelper



  • public class XSSFPaswordHelper
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void setPassword(org.apache.xmlbeans.XmlObject xobj, java.lang.String password, HashAlgorithm hashAlgo, java.lang.String prefix)
      Sets the XORed or hashed password
      static boolean validatePassword(org.apache.xmlbeans.XmlObject xobj, java.lang.String password, java.lang.String prefix)
      Validates the password, i.e.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XSSFPaswordHelper

        public XSSFPaswordHelper()
    • Method Detail

      • setPassword

        public static void setPassword(org.apache.xmlbeans.XmlObject xobj,
                                       java.lang.String password,
                                       HashAlgorithm hashAlgo,
                                       java.lang.String prefix)
        Sets the XORed or hashed password
        Parameters:
        xobj - the xmlbeans object which contains the password attributes
        password - the password, if null, the password attributes will be removed
        hashAlgo - the hash algorithm, if null the password will be XORed
        prefix - the prefix of the password attributes, may be null
      • validatePassword

        public static boolean validatePassword(org.apache.xmlbeans.XmlObject xobj,
                                               java.lang.String password,
                                               java.lang.String prefix)
        Validates the password, i.e. calculates the hash of the given password and compares it against the stored hash
        Parameters:
        xobj - the xmlbeans object which contains the password attributes
        password - the password, if null the method will always return false, even if there's no password set
        prefix - the prefix of the password attributes, may be null
        Returns:
        true, if the hashes match

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.