Class PasswordProviderBuilderProcessor.DefaultPasswordProvider
- java.lang.Object
-
- com.tangosol.coherence.config.xml.processor.PasswordProviderBuilderProcessor.DefaultPasswordProvider
-
- All Implemented Interfaces:
PasswordProvider
- Enclosing class:
- PasswordProviderBuilderProcessor
public static class PasswordProviderBuilderProcessor.DefaultPasswordProvider extends Object implements PasswordProvider
This class is to wrap the existing password into the password-provider approach. The single-arg constructor will accept theString
password and store it as a char[], to be returned when the "get()", implemented as part ofPasswordProvider
, is called.- Since:
- Coherence 12.2.1.4
- Author:
- spuneet 2017.08.18
-
-
Field Summary
-
Fields inherited from interface com.tangosol.net.PasswordProvider
NullImplementation
-
-
Constructor Summary
Constructors Constructor Description DefaultPasswordProvider()
DefaultPasswordProvider(String pass)
Constructor sets the password-string as a char[] when "get()" is called.
-
-
-
Constructor Detail
-
DefaultPasswordProvider
public DefaultPasswordProvider()
-
DefaultPasswordProvider
public DefaultPasswordProvider(String pass)
Constructor sets the password-string as a char[] when "get()" is called.- Parameters:
pass
- the clear text password
-
-
Method Detail
-
get
public char[] get()
Returns the password.- Specified by:
get
in interfacePasswordProvider
- Returns:
- a copy of password char[]. The consumer can zero the char[] after usage; and/but may call PasswordProvider#get if it requires the password again.
-
-