public interface PasswordProvider
The getPassword()
method may be called multiple times as needed, so the
caller does not need to (and should not) keep the password data in memory for longer than absolutely
necessary. Users of this class should erase the password array by calling
Arrays.fill(char[], char)
immediately when authentication is complete and the password data
is no longer needed.
Modifier and Type | Method and Description |
---|---|
char[] |
getPassword()
Returns a new char[] array with the password characters.
|
char[] getPassword()
It is the responsibility of the caller to erase this data by calling
Arrays.fill(char[], char)
immediately when authentication is complete and the password data
is no longer needed.
Copyright © 1999-2021 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.