|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.unboundid.ldap.sdk.PasswordProvider
com.unboundid.ldap.sdk.ReadFromFilePasswordProvider
@ThreadSafety(level=COMPLETELY_THREADSAFE) public final class ReadFromFilePasswordProvider
This class provides an implementation of a password provider that will obtain the password from a specified file. All bytes up to (but not including) the first end-of-line character (or to the end of the file if it does not contain an end-of-line character) will be considered part of the password.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
byte[] |
getPasswordBytes()
Retrieves a password in a newly-created byte array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReadFromFilePasswordProvider(java.lang.String passwordFile)
passwordFile
- The path to the file containing the password to use.
It must not be null
.public ReadFromFilePasswordProvider(java.io.File passwordFile)
passwordFile
- The file containing the password to use. It must not
be null
.Method Detail |
---|
public byte[] getPasswordBytes() throws LDAPException
getPasswordBytes
in class PasswordProvider
LDAPException
- If a problem is encountered while attempting to
obtain the password.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |