Top Fields Constructors Methods
org.apache.poi.hssf.record.crypto

public final Class Biff8EncryptionKey

extends Object
Class Inheritance
Imports
org.apache.poi.hssf.usermodel.HSSFWorkbook, org.apache.poi.util.ThreadLocalUtil

Field Summary

Modifier and TypeField and Description
private static final ThreadLocal<String>
_userPasswordTLS

Stores the BIFF8 encryption/decryption password for the current thread.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

the BIFF8 encryption/decryption password for the current thread. null if it is currently unset.
getCurrentUserPassword
()

public static void
setCurrentUserPassword(String
pass null to clear user password (and use default)
password
)

Sets the BIFF8 encryption/decryption password for the current thread.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_userPasswordTLSback to summary
private static final ThreadLocal<String> _userPasswordTLS

Stores the BIFF8 encryption/decryption password for the current thread. This has been done using a ThreadLocal in order to avoid further overloading the various public APIs (e.g. HSSFWorkbook) that need this functionality.

Constructor Detail

Biff8EncryptionKeyback to summary
public Biff8EncryptionKey()

Method Detail

getCurrentUserPasswordback to summary
public static String getCurrentUserPassword()
Returns:String

the BIFF8 encryption/decryption password for the current thread. null if it is currently unset.

setCurrentUserPasswordback to summary
public static void setCurrentUserPassword(String password)

Sets the BIFF8 encryption/decryption password for the current thread.

Parameters
password:String

pass null to clear user password (and use default)