Documentation of 'org.apache.poi.poifs.crypt.Decryptor' Java class
Decryptor
org.apache.poi.poifs.crypt

Class Decryptor

    • Field Detail

      • DEFAULT_PASSWORD

        public static final java.lang.String DEFAULT_PASSWORD
        See Also:
        Constant Field Values
      • DEFAULT_POIFS_ENTRY

        public static final java.lang.String DEFAULT_POIFS_ENTRY
        See Also:
        Constant Field Values
    • Method Detail

      • getDataStream

        public abstract java.io.InputStream getDataStream(DirectoryNode dir)
                                                   throws java.io.IOException,
                                                          java.security.GeneralSecurityException
        Return a stream with decrypted data.

        Use getLength() to get the size of that data that can be safely read from the stream. Just reading to the end of the input stream is not sufficient because there are normally padding bytes that must be discarded

        Parameters:
        dir - the node to read from
        Returns:
        decrypted stream
        Throws:
        java.io.IOException
        java.security.GeneralSecurityException
      • verifyPassword

        public abstract boolean verifyPassword(java.lang.String password)
                                        throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • getDataStream

        public java.io.InputStream getDataStream(NPOIFSFileSystem fs)
                                          throws java.io.IOException,
                                                 java.security.GeneralSecurityException
        Throws:
        java.io.IOException
        java.security.GeneralSecurityException
      • getDataStream

        public java.io.InputStream getDataStream(POIFSFileSystem fs)
                                          throws java.io.IOException,
                                                 java.security.GeneralSecurityException
        Throws:
        java.io.IOException
        java.security.GeneralSecurityException
      • getVerifier

        public byte[] getVerifier()
      • getSecretKey

        public javax.crypto.SecretKey getSecretKey()
      • getIntegrityHmacKey

        public byte[] getIntegrityHmacKey()
      • getIntegrityHmacValue

        public byte[] getIntegrityHmacValue()

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.