Class PasswordRecord

  • All Implemented Interfaces:
    org.apache.poi.common.Duplicatable, GenericRecord

    public final class PasswordRecord
    extends StandardRecord
    Stores the encrypted password for a sheet or workbook (HSSF doesn't support encryption)
    • Constructor Detail

      • PasswordRecord

        public PasswordRecord​(int password)
    • Method Detail

      • setPassword

        public void setPassword​(int password)
        set the password
        Parameters:
        password - representing the password
      • getPassword

        public int getPassword()
        get the password
        Returns:
        short representing the password
      • getSid

        public short getSid()
        Description copied from class: Record
        return the non static version of the id for this record.
        Specified by:
        getSid in class Record
        Returns:
        he id for this record
      • copy

        public PasswordRecord copy()
        Clone this record.
        Specified by:
        copy in interface org.apache.poi.common.Duplicatable
        Specified by:
        copy in class StandardRecord
      • getGenericProperties

        public java.util.Map<java.lang.String,​java.util.function.Supplier<?>> getGenericProperties()