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 the 
String password and store it as a char[],
 to be returned when the "get()", implemented as part of PasswordProvider, 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
ConstructorsConstructorDescriptionConstructor sets the password-string as a char[] when "get()" is called. - 
Method Summary
 
- 
Constructor Details
- 
DefaultPasswordProvider
public DefaultPasswordProvider() - 
DefaultPasswordProvider
Constructor sets the password-string as a char[] when "get()" is called.- Parameters:
 pass- the clear text password
 
 - 
 - 
Method Details
- 
get
public char[] get()Returns the password.- Specified by:
 getin 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.
 
 
 -