@ThreadSafety(level=COMPLETELY_THREADSAFE) public final class ReadFromFilePasswordProvider extends PasswordProvider
| Constructor | Description |
|---|---|
ReadFromFilePasswordProvider(java.io.File passwordFile) |
Creates a new instance of this password provider that will read passwords
from the specified file.
|
ReadFromFilePasswordProvider(java.lang.String passwordFile) |
Creates a new instance of this password provider that will read passwords
from the specified file.
|
| Modifier and Type | Method | Description |
|---|---|---|
byte[] |
getPasswordBytes() |
Retrieves a password in a newly-created byte array.
|
public ReadFromFilePasswordProvider(@NotNull java.lang.String passwordFile)
passwordFile - The path to the file containing the password to use.
It must not be null.public ReadFromFilePasswordProvider(@NotNull java.io.File passwordFile)
passwordFile - The file containing the password to use. It must not
be null.@NotNull public byte[] getPasswordBytes() throws LDAPException
getPasswordBytes in class PasswordProviderLDAPException - If a problem is encountered while attempting to
obtain the password.