Package com.tangosol.net
Interface PasswordProvider
- All Known Implementing Classes:
InputStreamPasswordProvider
,PasswordProviderBuilderProcessor.DefaultPasswordProvider
,URLPasswordProvider
public interface PasswordProvider
PasswordProvider allows Coherence users to plug in their own mechanism to determine the appropriate password.
- Since:
- 12.2.1.4
- Author:
- spuneet
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PasswordProvider
A singleton implementation of aPasswordProvider
that always returns an empty array. -
Method Summary
-
Field Details
-
NullImplementation
A singleton implementation of aPasswordProvider
that always returns an empty array.
-
-
Method Details
-
get
char[] get()Returns the password to be used in clear format. The char[] returned from the get() method is not retained by the provider, and it is expected that the consumer zero's out the array once it is done with the password.- Returns:
- password as char[]
-
reset
static void reset(char[]... arrays) Resets the contents of a password array- Parameters:
arrays
- an array of character arrays to reset
-